mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Think only supports bool #285
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @njbrake on GitHub (Aug 6, 2025).
Found while working on https://github.com/mozilla-ai/any-llm/pull/93
I think it needs to be allowed to accept some literals like 'high', 'medium', 'low', for gpt-oss models at least?
https://github.com/ollama/ollama/issues/11752
RIght now it's pydantic typed as a bool: https://github.com/ollama/ollama-python/blob/main/ollama/_client.py#L277
So i get pydantic validation errors if I try to pass a string
@drifkin commented on GitHub (Aug 7, 2025):
fixed in v0.5.3!