fix(api): raise litellm floor to 1.84.8 for tool_choice="none" - #1427
Merged
shihaobai merged 1 commit intoAug 4, 2026
Merged
Conversation
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.
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
代码中多处依赖
tool_choice="none"语义(api_openai.py的 chat/completions 路径,以及api_anthropic.py里经由 litellm anthropic 适配器的路径)。litellm 1.84.8 之前的版本对这些路径下的tool_choice="none"处理不正确。改动
requirements.txt:litellm>=1.52.0,<1.85→litellm>=1.84.8,<1.85。仅抬高下限,上限
<1.85不变。