Skip to content

Commit

Permalink
Add spec changes
Browse files Browse the repository at this point in the history
Co-authored-by: billytrend-cohere <[email protected]>
  • Loading branch information
platform-endpoints and billytrend-cohere committed Oct 30, 2024
1 parent 308c047 commit ccb7dd4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cohere-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ paths:
- $ref: "#/components/schemas/ChatToolCallsGenerationEvent"
- $ref: "#/components/schemas/ChatStreamEndEvent"
- $ref: "#/components/schemas/ChatToolCallsChunkEvent"
- $ref: "#/components/schemas/ChatDebugEvent"
discriminator:
propertyName: event_type
mapping:
Expand All @@ -166,6 +167,7 @@ paths:
tool-calls-generation: "#/components/schemas/ChatToolCallsGenerationEvent"
stream-end: "#/components/schemas/ChatStreamEndEvent"
tool-calls-chunk: "#/components/schemas/ChatToolCallsChunkEvent"
debug: "#/components/schemas/ChatDebugEvent"
x-fern-examples:
- code-samples:
- sdk: go
Expand Down Expand Up @@ -22359,6 +22361,7 @@ components:
- text-generation
- citation-generation
- stream-end
- debug
ChatStreamStartEvent:
allOf:
- $ref: "#/components/schemas/ChatStreamEvent"
Expand Down Expand Up @@ -22533,6 +22536,15 @@ components:
type: string
x-fern-audiences:
- public
ChatDebugEvent:
allOf:
- $ref: "#/components/schemas/ChatStreamEvent"
- type: object
properties:
prompt:
type: string
x-fern-audiences:
- public
StreamedChatResponse:
description: StreamedChatResponse is returned in streaming mode (specified with
`stream=True` in the request).
Expand All @@ -22546,6 +22558,7 @@ components:
- $ref: "#/components/schemas/ChatToolCallsGenerationEvent"
- $ref: "#/components/schemas/ChatStreamEndEvent"
- $ref: "#/components/schemas/ChatToolCallsChunkEvent"
- $ref: "#/components/schemas/ChatDebugEvent"
discriminator:
propertyName: event_type
mapping:
Expand All @@ -22557,6 +22570,7 @@ components:
tool-calls-generation: "#/components/schemas/ChatToolCallsGenerationEvent"
stream-end: "#/components/schemas/ChatStreamEndEvent"
tool-calls-chunk: "#/components/schemas/ChatToolCallsChunkEvent"
debug: "#/components/schemas/ChatDebugEvent"
TextContent:
type: object
description: Text content of the message.
Expand Down

0 comments on commit ccb7dd4

Please sign in to comment.