Skip to content

added max option to think parameter#681

Open
saneaven wants to merge 1 commit into
ollama:mainfrom
saneaven:support-think-max
Open

added max option to think parameter#681
saneaven wants to merge 1 commit into
ollama:mainfrom
saneaven:support-think-max

Conversation

@saneaven

Copy link
Copy Markdown

This adds max as an accepted value for the think parameter in the Python SDK.

The Ollama API/CLI supports max thinking effort for supported models, but the Python SDK type definitions currently allow only low, medium, and high.

This change updates the existing Literal[...] annotations to include max and adds tests to confirm it is serialized as top-level think: "max".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant