Repository navigation
Conversation
Contributor
Greptile SummaryAdds native structured-output capability metadata for the direct Anthropic
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code failure identified. The synchronized capability metadata is consumed by the existing Anthropic structured-output mapping, and the focused regression test verifies that the exact Sonnet 5 model selects native output formatting rather than the tool workaround.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Marks the direct Anthropic Sonnet 5 entry as supporting native structured output. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the Sonnet 5 capability flag in the bundled backup model map. |
| tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py | Adds a regression test confirming Sonnet 5 maps JSON-schema response formats to native output format without tool fallback. |
Reviews (1): Last reviewed commit: "fix(anthropic): use native structured ou..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
14 tasks done
6 tasks done
devin-ai-integration
Bot
changed the base branch from
litellm_internal_staging
to
main
September 23, 2026 15:15
devin-ai-integration
Bot
requested review from
kerry-berri and
ryan-crabbe-berri
as code owners
September 23, 2026 15:15
This branch has not been deployed
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.
TLDR
Problem this solves:
How it solves it:
Relevant issues
Fixes #35677
Linear ticket
Pre-Submission checklist
@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review)
Screenshots / Proof of Fix
Not available in this environment because Anthropic credentials are not configured
Type
Bug Fix
Changes
Adds
supports_native_structured_outputto the direct Anthropicclaude-sonnet-5entry in both model maps and adds a regression test covering Responses structured output routingFinal Attestation