Skip to content

update openapi spec for content blocks support #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15897,6 +15897,36 @@ components:
- type
- text

ChatCompletionMessageContentPartThinking:
type: object
title: Thinking content part
properties:
type:
type: string
enum: ["thinking"]
description: The type of the content part.
thinking:
type: string
description: The thinking content.
required:
- type
- thinking

ChatCompletionMessageContentPartRedactedThinking:
type: object
title: Redacted thinking content part
properties:
type:
type: string
enum: ["redacted_thinking"]
description: The type of the content part.
data:
type: string
description: The redacted thinking content.
required:
- type
- data

ChatCompletionRequestMessage:
oneOf:
- $ref: "#/components/schemas/ChatCompletionRequestSystemMessage"
Expand Down Expand Up @@ -16259,6 +16289,14 @@ components:
description: |
If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value.

ChatCompletionMessageContentBlock:
type: object
description: A block of content in a chat completion message.
oneOf:
- $ref: "#/components/schemas/ChatCompletionRequestMessageContentPartText"
- $ref: "#/components/schemas/ChatCompletionMessageContentPartThinking"
- $ref: "#/components/schemas/ChatCompletionMessageContentPartRedactedThinking"

ChatCompletionResponseMessage:
type: object
description: A chat completion message generated by the model.
Expand Down Expand Up @@ -16287,6 +16325,13 @@ components:
required:
- name
- arguments
content_blocks:
nullable: true
type: array
description: The content blocks of the message. This is only present for certain providers with strict-open-ai-compliance flag set to false
items:
type: object
$ref: "#/components/schemas/ChatCompletionMessageContentBlock"
required:
- role
- content
Expand Down
Loading