mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
[Test] Anthropic Passthrough: Bump Streaming Cost-Injection Test To Haiku 4.5
test_anthropic_messages_streaming_cost_injection hits the proxy's /v1/messages route, which routes via the anthropic/* wildcard to api.anthropic.com. The 404 surfaced in the test was Anthropic's own not_found_error propagated back through the proxy (visible from the x-litellm-model-id hash on the response — the proxy did route). Same root cause as the prior commit: the legacy claude-4-sonnet-20250514 alias is no longer recognized by Anthropic's main API under the new key. Swap to claude-haiku-4-5-20251001 — same routing path, canonical model.
This commit is contained in:
parent
e3917c9d08
commit
1e63be7a72
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ async def test_anthropic_messages_streaming_cost_injection():
|
|||
}
|
||||
|
||||
payload = {
|
||||
"model": "claude-4-sonnet-20250514",
|
||||
"model": "claude-haiku-4-5-20251001",
|
||||
"max_tokens": 10,
|
||||
"stream": True,
|
||||
"messages": [{"role": "user", "content": "Say 'Hi'"}],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue