Skip to content

Upgrade LiteLLM to Latest Version - #5

Open
IIAXSISII wants to merge 16 commits into
kargo/release/v1.97.0from
kargo-main
Open

Upgrade LiteLLM to Latest Version#5
IIAXSISII wants to merge 16 commits into
kargo/release/v1.97.0from
kargo-main

Conversation

@IIAXSISII

Copy link
Copy Markdown

Relevant issues

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to 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

kjavaherpour and others added 16 commits June 13, 2026 08:46
Preserve system cache_control and strip unsupported ttl for Snowflake…
…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
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1b100fab-ff14-4684-8bdb-064f6b2413e5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@IIAXSISII
IIAXSISII changed the base branch from release/v1.97.0 to kargo/release/v1.97.0 August 21, 2026 03:22
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.

3 participants