Skip to content

chore: update retired claude-3-haiku-20240307 to claude-haiku-4-5-20251001#26139

Merged
ryan-crabbe-berri merged 3 commits intolitellm_internal_stagingfrom
litellm_fix-retired-haiku-model
Apr 20, 2026
Merged

chore: update retired claude-3-haiku-20240307 to claude-haiku-4-5-20251001#26139
ryan-crabbe-berri merged 3 commits intolitellm_internal_stagingfrom
litellm_fix-retired-haiku-model

Conversation

@ryan-crabbe-berri
Copy link
Copy Markdown
Collaborator

Summary

Anthropic retired claude-3-haiku-20240307 on 2026-04-20 (see model deprecations), causing test_anthropic_messages_litellm_router_non_streaming_with_logging in tests/pass_through_unit_tests/test_anthropic_messages_passthrough.py to 404 on CI.

This PR replaces the 16 references to claude-3-haiku-20240307 in 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_logging passes against the live Anthropic API
  • Other tests in tests/pass_through_unit_tests/test_anthropic_messages_passthrough.py that assert on the model name (e.g. call_kwargs["model"] == ...) pick up the new value

…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-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 20, 2026

Greptile Summary

This PR replaces the retired claude-3-haiku-20240307 model ID with claude-haiku-4-5-20251001 across six test files to fix a 404 that was breaking CI. The scope is intentionally narrow — only test call sites that would hit the live Anthropic API are updated; fixture strings, Bedrock references, and catalog JSONs are left untouched.

Confidence Score: 5/5

Safe 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

Important Files Changed

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]
Loading

Reviews (3): Last reviewed commit: "replace retired claude-3-haiku-20240307 ..." | Re-trigger Greptile

…1 in local_testing part1 and router fallback tests
@ryan-crabbe-berri ryan-crabbe-berri merged commit 60d3796 into litellm_internal_staging Apr 20, 2026
94 of 97 checks passed
@ryan-crabbe-berri ryan-crabbe-berri deleted the litellm_fix-retired-haiku-model branch April 20, 2026 23:30
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.

2 participants