chore: update retired claude-3-haiku-20240307 to claude-haiku-4-5-20251001#26139
Conversation
…1 in anthropic messages passthrough test Anthropic retired claude-3-haiku-20240307 on 2026-04-20, causing the test_anthropic_messages_litellm_router_non_streaming_with_logging test to 404. Update the model references in this file to the current pinned haiku version.
Greptile SummaryThis PR replaces the retired Confidence Score: 5/5Safe to merge — mechanical model-ID replacement with no logic changes and no test coverage weakened All changes are direct string substitutions of a retired model ID. No assertions were weakened, no mocks were changed to hide regressions, and the Bedrock/Vertex references were correctly left untouched. No P0/P1 findings. No files require special attention
|
| Filename | Overview |
|---|---|
| tests/pass_through_unit_tests/test_anthropic_messages_passthrough.py | 16 occurrences of claude-3-haiku-20240307 replaced with claude-haiku-4-5-20251001; mock-based tests updated consistently alongside the live-API test that was 404-ing |
| tests/local_testing/test_function_call_parsing.py | Direct Anthropic model updated; Bedrock variant anthropic.claude-3-haiku-20240307-v1:0 intentionally left as-is per stated PR scope |
| tests/local_testing/test_router_fallbacks.py | Two litellm_params.model values updated; logical alias claude-3-haiku kept unchanged, which is correct since aliases are independent of the underlying model ID |
| tests/local_testing/test_streaming.py | Two parametrized model entries replaced cleanly with no other changes |
| tests/local_testing/test_function_calling.py | Two parametrized model entries updated; surrounding test logic untouched |
| tests/local_testing/test_batch_completions.py | Single model reference updated in batch completion model list |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[CI test 404s on retired
claud-3-haiku-20240307] --> B{Is reference a
live API call?}
B -->|Yes - Anthropic direct| C[Replace with
claude-haiku-4-5-20251001]
B -->|No - Bedrock/Vertex/fixture| D[Leave unchanged]
C --> E[6 test files updated
~16 occurrences]
D --> F[Catalog JSONs, Bedrock refs,
docs untouched]
E --> G[CI passes again]
Reviews (3): Last reviewed commit: "replace retired claude-3-haiku-20240307 ..." | Re-trigger Greptile
…1 in streaming tests
…1 in local_testing part1 and router fallback tests
60d3796
into
litellm_internal_staging
Summary
Anthropic retired
claude-3-haiku-20240307on 2026-04-20 (see model deprecations), causingtest_anthropic_messages_litellm_router_non_streaming_with_loggingin tests/pass_through_unit_tests/test_anthropic_messages_passthrough.py to 404 on CI.This PR replaces the 16 references to
claude-3-haiku-20240307in that file with the current pinned Haiku version,claude-haiku-4-5-20251001(per Anthropic's recommended replacement).Scope intentionally kept to the single test file whose failure we observed. Other files referencing the retired name (catalog JSONs, Bedrock/Vertex refs, pattern-resolution tests, docs) were not touched — they're either not broken by the retirement or use the string as a fixture rather than calling the API.
Type
🧹 Refactoring
Test plan
test_anthropic_messages_litellm_router_non_streaming_with_loggingpasses against the live Anthropic APItests/pass_through_unit_tests/test_anthropic_messages_passthrough.pythat assert on the model name (e.g.call_kwargs["model"] == ...) pick up the new value