Repository navigation
fix(databricks): translate reasoning_effort to thinking for Gemini 2.5 #40909
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
Merged
mateo-berri
merged 15 commits into
litellm_internal_staging
from
litellm_databricks_reasoning_effort_thinking
Sep 13, 2026
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
443bee3
fix(databricks): translate reasoning_effort to thinking for Gemini 2.…
cohml d7b793c
fix(databricks,base_llm): narrow gemini-2.5 match and guard thinking-…
cohml 2bff743
refactor(databricks): drive anthropic-thinking routing via JSON flag.
cohml f5e1786
Merge PR #32786 (databricks gemini reasoning_effort) into internal_st…
milan-berri 7a7fea2
style: apply ruff format to databricks transformation
milan-berri e969eac
test: register supports_anthropic_thinking_payload in model prices js…
milan-berri d9c9dcf
fix(databricks): guard adaptive thinking to Claude and scope test fix…
milan-berri 4b157ed
Merge litellm_internal_staging into devin/1784568628-databricks-gemin…
milan-berri 38ffa67
fix(types): qualify supports_anthropic_thinking_payload with ReadOnly
milan-berri 896b6dc
ci: regenerate model prices schema and raise unit shard job timeouts
milan-berri 8a5aeed
fix(databricks): add supports_anthropic_thinking_payload to claude op…
milan-berri 58254e8
Merge litellm_internal_staging into devin/1784568628-databricks-gemin…
milan-berri 10a0da7
Merge litellm_internal_staging into devin/1784568628-databricks-gemin…
mateo-berri c7b607c
fix(databricks): keep the Claude fallback when gating the anthropic t…
mateo-berri a7ebc12
ci: drop the removed rust bridge test path from the ocr job
mateo-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The literal Claude check hardcodes model capability detection. Repository rules require model-specific capabilities to come from model metadata before merging
Rule Used: What: Do not hardcode model-specific flags in the codebase. Instead, put them in model_prices_and_context_window.json and then read them in via get_model_info Why: Prevents need for users to upgrade litellm each time a new model supports this featu... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name check predates this PR and covers user-named Databricks Claude endpoints that have no cost-map entry. Removing it would 400 requests that work today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right — removing the name check would be a backwards-incompatible change for user-named Databricks Claude endpoints that are absent from the cost map. The metadata flag is the preferred path for mapped models, while
"claude" in normalizedis a necessary compatibility fallback for unmapped endpoints. I withdraw this comment.