ollama/api
Baptiste Jamin 59241c5bee
server: add logprobs and top_logprobs support to Ollama's API (#12899)
Adds logprobs support to Ollama's API including support for Ollama's
OpenAI-compatible API. By specifying the new 'logprobs' boolean parameter
in the API, Ollama will return the log probabilities for each token generated.
'top_logprobs', an integer value can also be specified up to the value 20.
When specified, the API will also provide the number of most likely tokens to
return at each token position

Co-authored-by: Baptiste Jamin <baptiste@crisp.chat>
2025-11-11 08:49:50 -08:00
..
examples docs: improve syntax highlighting in code blocks (#8854) 2025-02-07 09:55:07 -08:00
client.go auth: fix problems with the ollama keypairs (#12373) 2025-09-22 23:20:20 -07:00
client_test.go api: fix unreachable status err (#11423) 2025-07-16 11:03:28 -07:00
types.go server: add logprobs and top_logprobs support to Ollama's API (#12899) 2025-11-11 08:49:50 -08:00
types_test.go api: add omitempty to required tool function parameter type (#12989) 2025-11-06 14:08:55 -08:00
types_typescript_test.go tools: support anyOf types 2025-08-05 16:46:24 -07:00