Bump anthropic to 0.62.0 (#150284)

This commit is contained in:
Denis Shulyaka
2025-08-08 21:51:49 +03:00
committed by GitHub
parent 94191239c6
commit 13e592edaf
5 changed files with 10 additions and 9 deletions

View File

@@ -20,10 +20,8 @@ RECOMMENDED_THINKING_BUDGET = 0
MIN_THINKING_BUDGET = 1024
THINKING_MODELS = [
"claude-3-7-sonnet-20250219",
"claude-3-7-sonnet-latest",
"claude-opus-4-20250514",
"claude-opus-4-0",
"claude-sonnet-4-20250514",
"claude-3-7-sonnet",
"claude-sonnet-4-0",
"claude-opus-4-0",
"claude-opus-4-1",
]

View File

@@ -361,7 +361,10 @@ class AnthropicBaseLLMEntity(Entity):
"system": system.content,
"stream": True,
}
if model in THINKING_MODELS and thinking_budget >= MIN_THINKING_BUDGET:
if (
model.startswith(tuple(THINKING_MODELS))
and thinking_budget >= MIN_THINKING_BUDGET
):
model_args["thinking"] = ThinkingConfigEnabledParam(
type="enabled", budget_tokens=thinking_budget
)

View File

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

2
requirements_all.txt generated
View File

@@ -495,7 +495,7 @@ anova-wifi==0.17.0
anthemav==1.4.1
# homeassistant.components.anthropic
anthropic==0.52.0
anthropic==0.62.0
# homeassistant.components.mcp_server
anyio==4.9.0

View File

@@ -468,7 +468,7 @@ anova-wifi==0.17.0
anthemav==1.4.1
# homeassistant.components.anthropic
anthropic==0.52.0
anthropic==0.62.0
# homeassistant.components.mcp_server
anyio==4.9.0