diff --git a/src/libs/Cohere/openapi.yaml b/src/libs/Cohere/openapi.yaml index 1fca3fb..447baca 100644 --- a/src/libs/Cohere/openapi.yaml +++ b/src/libs/Cohere/openapi.yaml @@ -1044,90 +1044,110 @@ paths: stream: true response: stream: - - type: message-start - id: 29f14a5a-11de-4cae-9800-25e4747408ea - delta: - message: - role: assistant - content: [ ] - tool_plan: '' - tool_calls: [ ] - citations: [ ] - - type: content-start - index: 0 - delta: - message: - content: - type: text - text: '' - - type: content-delta - index: 0 - delta: - message: - content: - text: Hello - - type: content-delta - index: 0 - delta: - message: - content: - text: '!' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' How' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' can' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' I' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' help' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' you' - - type: content-delta - index: 0 - delta: - message: - content: - text: ' today' - - type: content-delta - index: 0 - delta: - message: - content: - text: '?' - - type: content-end - index: 0 - - event_type: message-end - delta: - finish_reason: complete - usage: - api_version: - version: '2' - billed_units: - input_tokens: 3 - output_tokens: 9 - tokens: - input_tokens: 69 - output_tokens: 9 + - event: stream-start + data: + type: message-start + id: 29f14a5a-11de-4cae-9800-25e4747408ea + delta: + message: + role: assistant + - event: text-generation + data: + type: content-start + index: 0 + delta: + message: + content: + type: text + text: '' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: Hello + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: '!' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' How' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' can' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' I' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' help' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' you' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: ' today' + - event: text-generation + data: + type: content-delta + index: 0 + delta: + message: + content: + text: '?' + - event: text-generation + data: + type: content-end + index: 0 + - event: stream-end + data: + type: message-end + delta: + finish_reason: complete + usage: + billed_units: + input_tokens: 3 + output_tokens: 9 + tokens: + input_tokens: 69 + output_tokens: 9 - code-samples: - sdk: typescript name: Tools @@ -1171,26 +1191,26 @@ paths: id: 9e5f00aa-bf1e-481a-abe3-0eceac18c3ec message: role: assistant - tool_plan: 'I will first find the sales summary for 29th September 2023. Then, I wil' - find the details of the products in the 'Electronics' category." tool_calls: - - id: query_daily_sales_report_hgxxmkby3wta - type: function - function: - name: query_daily_sales_report - arguments: '{"day": "2023-09-29"}' - - id: query_product_catalog_rpg0z5h8yyz2 - type: function - function: - name: query_product_catalog - arguments: '{"category": "Electronics"}' - finish_reason: tool_call - usage: - billed_units: - input_tokens: 127 - output_tokens: 69 - tokens: - input_tokens: 1032 - output_tokens: 124 + tool_plan: 'I will first find the sales summary for 29th September 2023. Then, I will find the details of the products in the ''Electronics'' category.' + tool_calls: + - id: query_daily_sales_report_hgxxmkby3wta + type: function + function: + name: query_daily_sales_report + arguments: '{"day": "2023-09-29"}' + - id: query_product_catalog_rpg0z5h8yyz2 + type: function + function: + name: query_product_catalog + arguments: '{"category": "Electronics"}' + finish_reason: tool_call + usage: + billed_units: + input_tokens: 127 + output_tokens: 69 + tokens: + input_tokens: 1032 + output_tokens: 124 /v1/generate: post: summary: Generate