Upgrade LiteLLM to Latest Version - #5
Open
IIAXSISII wants to merge 16 commits into
Open
Conversation
Merge litellm main
…y override bypass
Preserve system cache_control and strip unsupported ttl for Snowflake…
…rtex Messages API
KRAK-6731 - Fix claude images
…Cortex When a tool (e.g. Claude Code's Read) returns an image, Claude Code sends a native Anthropic tool_result whose content is an image/source block. LiteLLM's Anthropic pass-through adapter flattens that into an OpenAI tool message: a single image becomes a bare data:<media_type>;base64,<data> string, and a multi-part result becomes a list of OpenAI content blocks. The Snowflake Cortex transform forwarded the data-URI string verbatim and json.dumps'd the block list, so Cortex read the image as literal text and the model never saw it. Rebuild tool_result content into native Anthropic blocks: a data-URI string becomes an image/source block, a list of OpenAI blocks is converted per block (text passthrough, image_url to image/source), plain text stays a bare string (the idiomatic Anthropic shape), and any other value (e.g. a structured dict) keeps the json.dumps fallback
…laude fix/Fix image tool calls claude
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
IIAXSISII
changed the base branch from
release/v1.97.0
to
kargo/release/v1.97.0
August 21, 2026 03:22
5 tasks
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.
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@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
Type
🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes