Skip to content

fix(deps): upgrade LiteLLM to 1.103.10 for Responses tools - #7313

Merged
qin-ctx merged 1 commit into
volcengine:mainfrom
r266-tech:codex/litellm-responses-bridge-pin
Nov 12, 2026
Merged

qin-ctx merged 1 commit into
volcengine:mainfrom
r266-tech:codex/litellm-responses-bridge-pin

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

Description

Upgrade the LiteLLM pin to 1.103.10 so non-streaming Responses replies keep narration and function calls together. With the current 1.102.4 pin, a narrated call puts the tool call in a later chat choice; OpenViking correctly reads the first choice and therefore misses it.

The selected maintenance release handles both one and two message items before a function call, while preserving the current Python and MCP 1.x dependency bounds. Only LiteLLM and required transitive packages change versions.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

Fixes #7304.

Upstream fixes: BerriAI/litellm#44346 and BerriAI/litellm#46099. The DeepSeek image behavior from #7025 is retained in the compatibility probes.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Test update

Changes Made

  • Pin litellm>=1.103.10,<1.103.11 and refresh its required lockfile dependencies.
  • Add an HTTP regression in the existing request-body module, through VLMConfig → RetryVLM → real LiteLLM/SDK conversion → OpenViking's structured response.
  • Cover tool-only, one narrated message, and two narrated messages, using both sync and async completion paths.

Why this version

These are local synthetic HTTP results with MCP 1.27.0:

LiteLLM Tool-only One message + call Two messages + call
1.102.4 Pass Missing tool Missing text/tool
1.103.3 Pass Pass Missing text/tool
1.103.10 Pass Pass Pass
1.108.0 / 1.108.3 CacheableResult import error Same Same

The two tested 1.108 releases import an MCP type absent from the current SDK on this path. 1.103.10 is the latest stable patch in the compatible 1.103 maintenance line and passes the complete fixture without an MCP major upgrade.

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Core validation commands, using isolated environments:

uv sync --frozen --no-install-project --no-default-groups --extra gemini
uv pip check --python .venv/bin/python
.venv/bin/python -m pytest --noconftest -o addopts= tests/unit/test_extra_headers_vlm.py::TestVLMExtraRequestBody::test_litellm_responses_bridge_keeps_narration_and_tool_call -q
.venv-py310/bin/python -m pytest --noconftest -o addopts= tests/unit/test_extra_headers_vlm.py::TestVLMExtraRequestBody::test_litellm_responses_bridge_keeps_narration_and_tool_call -q
python -m ruff check tests/unit/test_extra_headers_vlm.py
python -m ruff format --check tests/unit/test_extra_headers_vlm.py
python -m mypy --follow-imports=skip tests/unit/test_extra_headers_vlm.py
git diff --check
  • All three bridge cases pass on Python 3.14.10 and 3.10.21. The original pin has two expected failures and a passing tool-only control.
  • The same 616 selected model/provider cases were compared offline: old pin 592 passed / 24 failed; new pin 594 passed / 22 failed. Exactly the two narration cases improve, with no new failures. The remaining failures are 16 stale Ollama assertions (addressed separately by test(litellm): align Ollama context assertions with forwarded kwargs #7312) and six pre-existing Ark/Python-3.14 typing failures.
  • Eight DeepSeek mixed image/text + tool requests pass on both Python versions, across deepseek-flash / deepseek-v4-flash and sync/async text/vision paths. MCP 1.27 tool listing and invocation also pass. The original pin passes the same compatibility probe.
  • Installed dependency checks pass on both Python versions. Lockfile wheel hashes match PyPI; Python bounds and the locked MCP version remain unchanged. Ruff, format, isolated mypy, and diff checks pass; existing dependency/deprecation warnings remain.

Lock generation in the shallow checkout used the supported local metadata override SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OPENVIKING=0.0.0+g36354fa6e; uv lock --check passes. No versioned package artifact was published.

HTTP responses were fixtures, with external model connections blocked during the broader comparison. No live inference, full Compile workload, or native source build was tested.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

@qin-ctx
qin-ctx merged commit 0367529 into volcengine:main Nov 12, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: LiteLLM pin 1.102.4 drops narrated tool calls on the Responses bridge; please raise to >=1.103.3 (ideally 1.108.x)

2 participants