Repository navigation
test(e2e): move Vertex Claude Code cells from Sonnet 4.5 to Sonnet 4.6 - #54246
Conversation
PR overviewNo security issues were found in this pull request. Reviews
|
[Low impact] The PR appears safe to merge.
|
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a1cd3f2. Configure here.
Handwritten 1-3 sentence description
Our Claude Code e2e tests on Vertex now use Sonnet 4.6 instead of Sonnet 4.5. Google does not offer Sonnet 4.5 to new projects anymore, so these tests would all fail once CI moves to our new GCP project
Details
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer runs Claude Code through the gateway on a new GCP project, and every Sonnet request fails
VERTEXAI_PROJECTset to a new GCP projectclaude --model claude-sonnet-4-5-vertexwithANTHROPIC_BASE_URLset to the proxy and ask it to write and run a fileAfter: the same setup works with the Sonnet 4.6 alias
claude --model claude-sonnet-4-6-vertexand ask the same thinghello.py, runs it, and reportshelloPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays 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
Both proxies ran the same code with 2 workers each, on a new GCP project with Vertex location
global. Only the config file and test files differ: Before uses the merge base23ca45756a8, After usesa1cd3f290c5/v1/messagescurl, SonnetBefore (23ca457)
Claude Code TUI
claude --model claude-sonnet-4-5-vertexwithANTHROPIC_BASE_URL=http://127.0.0.1:25079andANTHROPIC_AUTH_TOKEN=$LITELLM_MASTER_KEY/v1/messages curl
16 Vertex test files
All 13 failures are the Sonnet 4.5 model,
claude CLI failed: exit=1; api_status=404. Haiku and Opus passed. Full log in the gistAfter (a1cd3f2)
Claude Code TUI
claude --model claude-sonnet-4-6-vertexwithANTHROPIC_BASE_URL=http://127.0.0.1:21495andANTHROPIC_AUTH_TOKEN=$LITELLM_MASTER_KEYhello.py, ran it, and reportedhello/v1/messages curl
16 Vertex test files
Full log in the gist
Notes from the run:
/live-pr-risk exemption at a1cd3f2
The diff changes no product code. The removed
vertex-sonnet-4-5andclaude-sonnet-4-5-vertexnames have no other reference in this branch merged with main (0fbc973492b), and GitHub code search finds none in other BerriAI repos.litellm/proxy/dev_config.yamlis only read when someone boots a local proxy with it.tests/e2e/claude_code/test_config.yamlis read by the e2e fixture that registers the models and by the daily compat cron, which is the same path the live run above coversA focused check at
a1cd3f290c5printed thisType
✅ Test
Caveats (if any)
Low
vertex-sonnet-4-6is already in the same file, so a developer only switches names. No CI job or test readsdev_config.yamlcontext-1m-2025-08-07beta header from 4.5, and only the skipped 1M cell would test itQA runbook
Every test below needs the proxy booted on
tests/e2e/claude_code/test_config.yamlwithVERTEXAI_PROJECTandVERTEXAI_CREDENTIALSset,claudeon PATH, andLITELLM_PROXY_URLandLITELLM_MASTER_KEYexported. Each test runs Haiku 4.5, Sonnet 4.6, and Opus through Claude Code and needs all three to passChecklist for each of the 16 tests
claude --model claude-sonnet-4-6-vertexand ask for the word pong, expect pong$LITELLM_PROXY_URL/vertex_aiand ask for pong, expect a reply--json-schemaand ask what 2 + 2 is, expect output matching the schema--effort high, expect a thinking block in the response--effort high, ask it to reason about and then runecho pong, expect thinking and a Bash callecho pongwith the Bash tool, expect a tool_use blockFinal Attestation
Bugbot summary