Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ce29f695
Unverified
Commit
ce29f695
authored
Nov 14, 2025
by
Parth Sareen
Committed by
GitHub
Nov 14, 2025
Browse files
docs: add logprobs to openapi (#13090)
parent
12b174b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
docs/openapi.yaml
docs/openapi.yaml
+57
-0
No files found.
docs/openapi.yaml
View file @
ce29f695
...
...
@@ -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 enabled
GenerateResponse
:
type
:
object
properties
:
...
...
@@ -150,6 +156,11 @@ components:
eval_duration
:
type
:
integer
description
:
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 enabled
GenerateStreamEvent
:
type
:
object
properties
:
...
...
@@ -287,6 +298,12 @@ components:
-
type
:
string
-
type
:
number
description
:
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 enabled
ChatResponse
:
type
:
object
properties
:
...
...
@@ -344,6 +361,11 @@ components:
eval_duration
:
type
:
integer
description
:
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 enabled
ChatStreamEvent
:
type
:
object
properties
:
...
...
@@ -706,6 +728,41 @@ components:
version
:
type
:
string
description
:
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 position
ErrorResponse
:
type
:
object
properties
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment