Bump anthropic to 0.75.0 (#157491)

This commit is contained in:
Denis Shulyaka
2025-11-29 16:35:30 +03:00
committed by GitHub
parent a1132195fd
commit b031a082cd
6 changed files with 17 additions and 5 deletions

View File

@@ -421,6 +421,8 @@ class ConversationSubentryFlowHandler(ConfigSubentryFlow):
)
if short_form.search(model_alias):
model_alias += "-0"
if model_alias.endswith(("haiku", "opus", "sonnet")):
model_alias += "-latest"
model_options.append(
SelectOptionDict(
label=model_info.display_name,

View File

@@ -8,5 +8,5 @@
"documentation": "https://www.home-assistant.io/integrations/anthropic",
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["anthropic==0.73.0"]
"requirements": ["anthropic==0.75.0"]
}

2
requirements_all.txt generated
View File

@@ -504,7 +504,7 @@ anova-wifi==0.17.0
anthemav==1.4.1
# homeassistant.components.anthropic
anthropic==0.73.0
anthropic==0.75.0
# homeassistant.components.mcp_server
anyio==4.10.0

View File

@@ -480,7 +480,7 @@ anova-wifi==0.17.0
anthemav==1.4.1
# homeassistant.components.anthropic
anthropic==0.73.0
anthropic==0.75.0
# homeassistant.components.mcp_server
anyio==4.10.0

View File

@@ -128,6 +128,12 @@ async def mock_init_component(
"""Initialize integration."""
model_list = AsyncPage(
data=[
ModelInfo(
id="claude-opus-4-5-20251101",
created_at=datetime.datetime(2025, 11, 1, 0, 0, tzinfo=datetime.UTC),
display_name="Claude Opus 4.5",
type="model",
),
ModelInfo(
id="claude-haiku-4-5-20251001",
created_at=datetime.datetime(2025, 10, 15, 0, 0, tzinfo=datetime.UTC),

View File

@@ -357,6 +357,10 @@ async def test_model_list(
assert options["type"] == FlowResultType.FORM
assert options["step_id"] == "advanced"
assert options["data_schema"].schema["chat_model"].config["options"] == [
{
"label": "Claude Opus 4.5",
"value": "claude-opus-4-5",
},
{
"label": "Claude Haiku 4.5",
"value": "claude-haiku-4-5",
@@ -379,11 +383,11 @@ async def test_model_list(
},
{
"label": "Claude Sonnet 3.7",
"value": "claude-3-7-sonnet",
"value": "claude-3-7-sonnet-latest",
},
{
"label": "Claude Haiku 3.5",
"value": "claude-3-5-haiku",
"value": "claude-3-5-haiku-latest",
},
{
"label": "Claude Haiku 3",