Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
docs: add logprobs to openapi (#13090)
Parth Sareence29f695b407
diff --git a/docs/openapi.yaml b/docs/openapi.yamlindex 61f2a6fa3..4817bcb41 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -111,6 +111,12 @@ components:description: Model keep-alive duration (for example `5m` or `0` to unload immediately)options:$ref: "#/components/schemas/ModelOptions"+ logprobs:+ type: boolean+ description: Whether to return log probabilities of the output tokens+ top_logprobs:+ type: integer+ description: Number of most likely tokens to return at each token position when logprobs are enabledGenerateResponse:type: objectproperties:@@ -150,6 +156,11 @@ components:eval_duration:type: integerdescription: Time spent generating tokens in nanoseconds+ logprobs:+ type: array+ items:+ $ref: "#/components/schemas/Logprob"+ description: Log probability information for the generated tokens when logprobs are enabledGenerateStreamEvent:type: objectproperties:@@ -287,6 +298,12 @@ components:- type: string- type: numberdescription: Model keep-alive duration (for example `5m` or `0` to unload immediately)+ logprobs:+ type: boolean+ description: Whether to return log probabilities of the output tokens+ top_logprobs:+ type: integer+ description: Number of most likely tokens to return at each token position when logprobs are enabledChatResponse:type: objectproperties:@@ -344,6 +361,11 @@ components:eval_duration:type: integerdescription: Time spent generating tokens in nanoseconds+ logprobs:+ type: array+ items:+ $ref: "#/components/schemas/Logprob"+ description: Log probability information for the generated tokens when logprobs are enabledChatStreamEvent:type: objectproperties:@@ -706,6 +728,41 @@ components:version:type: stringdescription: Version of Ollama+ TokenLogprob:+ type: object+ description: Log probability information for a single token alternative+ properties:+ token:+ type: string+ description: The text representation of the token+ logprob:+ type: number+ description: The log probability of this token+ bytes:+ type: array+ items:+ type: integer+ description: The raw byte representation of the token+ Logprob:+ type: object+ description: Log probability information for a generated token+ properties:+ token:+ type: string+ description: The text representation of the token+ logprob:+ type: number+ description: The log probability of this token+ bytes:+ type: array+ items:+ type: integer+ description: The raw byte representation of the token+ top_logprobs:+ type: array+ items:+ $ref: "#/components/schemas/TokenLogprob"+ description: Most likely tokens and their log probabilities at this positionErrorResponse:type: objectproperties: