Remove retired Claude Haiku 3 model#168657
Open
Shulyaka wants to merge 1 commit intohome-assistant:devfrom
Open
Remove retired Claude Haiku 3 model#168657Shulyaka wants to merge 1 commit intohome-assistant:devfrom
Shulyaka wants to merge 1 commit intohome-assistant:devfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes references to the retired Claude Haiku 3 model from the Anthropic integration test fixtures/snapshots and adjusts model aliasing/config-flow behavior accordingly.
Changes:
- Remove “Claude Haiku 3” from the mocked model list and the config-flow model-list snapshot.
- Update Anthropic tests to use current model IDs/defaults (e.g., Haiku 4.5 / Opus 4).
- Simplify
model_alias()handling and remove per-model web/code-execution “unsupported” lists.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/components/anthropic/test_init.py | Updates deprecated-model repair test to use a newer model ID. |
| tests/components/anthropic/test_config_flow.py | Updates expected options/model IDs for current defaults. |
| tests/components/anthropic/snapshots/test_config_flow.ambr | Removes “Claude Haiku 3” from the model picker snapshot. |
| tests/components/anthropic/init.py | Removes Haiku 3 from the mocked Anthropic model_list. |
| homeassistant/components/anthropic/coordinator.py | Adjusts model alias resolution logic. |
| homeassistant/components/anthropic/const.py | Removes model-specific unsupported lists; narrows tool-search unsupported prefixes. |
| homeassistant/components/anthropic/config_flow.py | Removes gating based on unsupported model lists; always exposes web/code execution toggles. |
Comment on lines
+31
to
33
| if model_id[-2:-1] != "-" and not model_id.endswith("-preview"): | ||
| model_id = model_id[:-9] | ||
| if _model_short_form.search(model_id): |
There was a problem hiding this comment.
Make model_alias only strip a trailing date suffix (e.g., -YYYYMMDD) so it stays idempotent for already-short model IDs. With the current model_id[-2:-1] != "-" check, a short ID like claude-3-7-sonnet (which can result from stripping claude-3-7-sonnet-20250219) gets truncated to claude, breaking alias matching in get_model_info and any UI that round-trips these values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
Remove support for Claude Haiku 3 which has been retired today.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: