Skip to content

fix(api): raise litellm floor to 1.84.8 for tool_choice="none" - #1427

Merged
shihaobai merged 1 commit into
ModelTC:mainfrom
sufubao:upstream-pr/litellm-toolchoice-none
Aug 4, 2026
Merged

fix(api): raise litellm floor to 1.84.8 for tool_choice="none"#1427
shihaobai merged 1 commit into
ModelTC:mainfrom
sufubao:upstream-pr/litellm-toolchoice-none

Conversation

@sufubao

@sufubao sufubao commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

背景

代码中多处依赖 tool_choice="none" 语义(api_openai.py 的 chat/completions 路径,以及 api_anthropic.py 里经由 litellm anthropic 适配器的路径)。litellm 1.84.8 之前的版本对这些路径下的 tool_choice="none" 处理不正确。

改动

requirements.txtlitellm>=1.52.0,<1.85litellm>=1.84.8,<1.85

仅抬高下限,上限 <1.85 不变。

Versions of litellm before 1.84.8 do not correctly handle
tool_choice="none" in the prompt-building / anthropic adapter paths that
lightllm relies on (api_openai.py, api_anthropic.py). Bump the lower
bound from 1.52.0 to 1.84.8; the existing <1.85 upper bound is unchanged.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@shihaobai
shihaobai merged commit ba53b43 into ModelTC:main Aug 4, 2026
1 check passed
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.

2 participants