Skip to content
Open
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
19 changes: 18 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8486,6 +8486,12 @@ components:
- tool_calls
- function_call

TopLogprobs:
description: Top log probabilities for the tokens.
type: object
additionalProperties:
type: number

LogprobsPart:
type: object
properties:
Expand All @@ -8504,6 +8510,8 @@ components:
items:
type: number
description: List of token log probabilities
top_logprobs:
$ref: '#/components/schemas/TopLogprobs'

PromptPart:
type: array
Expand Down Expand Up @@ -8659,6 +8667,7 @@ components:
choices:
$ref: '#/components/schemas/CompletionChoicesData'
prompt:
description: When `echo` is true, the prompt is included in the response. Additionally, when `logprobs` is also provided, log probability information is provided on the prompt.
$ref: '#/components/schemas/PromptPart'
usage:
$ref: '#/components/schemas/UsageData'
Expand All @@ -8674,6 +8683,7 @@ components:
- choices
- usage
- created
- prompt
- model
- object

Expand Down Expand Up @@ -8791,6 +8801,8 @@ components:
allOf:
- nullable: true
- $ref: '#/components/schemas/LogprobsPart'
top_logprobs:
$ref: '#/components/schemas/TopLogprobs'
ChatCompletionMessage:
type: object
required: [role, content]
Expand Down Expand Up @@ -9279,14 +9291,17 @@ components:
type: integer
model:
type: string
prompt:
description: When `echo` is true, the prompt is included in the response. Additionally, when `logprobs` is also provided, log probability information is provided on the prompt.
$ref: '#/components/schemas/PromptPart'
object:
description: The object type, which is always `chat.completion`.
const: chat.completion
warnings:
type: array
items:
$ref: '#/components/schemas/InferenceWarning'
required: [choices, id, created, model, object]
required: [choices, id, created, model, object, prompt]

ChatCompletionStream:
oneOf:
Expand Down Expand Up @@ -9331,6 +9346,8 @@ components:
logprobs:
type: number
nullable: true
top_logprobs:
$ref: '#/components/schemas/TopLogprobs'
seed:
type: integer
nullable: true
Expand Down