Skip to content

Add extraBody support #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add extraBody support #154

wants to merge 1 commit into from

Conversation

yujinqiu
Copy link

Qwen3 model support Hybrid Thinking Modes, opensource model is enable Thinking mode by default which is not suitable for time sensitive task (Translation, etc)
We can add extra boy param to disable Thinking mode, like ollama Example using Ollama’s chat API with thinking enabled

OpenAI Python SDK also support this feature

@longseespace
Copy link
Contributor

Anthropic also supports the extra_body field for thinking budget: https://docs.anthropic.com/en/api/openai-sdk#getting-started-with-the-openai-sdk

@jamesrochabrun
Copy link
Owner

@yujinqiu thanks for your contribution, do you mind rebasing? thanks

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.

3 participants