Skip to content

Commit

Permalink
Merge pull request #37 from tryAGI/bot/update-openapi_202409061519
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 6, 2024
2 parents 1edd323 + a2d77ce commit 481fb84
Showing 1 changed file with 124 additions and 104 deletions.
228 changes: 124 additions & 104 deletions src/libs/Cohere/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 481fb84

Please sign in to comment.