Skip to content

Commit b59bc45

Browse files
authored
Fix typo in Google Gen AI const (home-assistant#155196)
1 parent da05579 commit b59bc45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

homeassistant/components/google_generative_ai_conversation/ai_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
CONF_CHAT_MODEL,
2020
CONF_RECOMMENDED,
2121
LOGGER,
22-
RECOMMENDED_A_TASK_MAX_TOKENS,
22+
RECOMMENDED_AI_TASK_MAX_TOKENS,
2323
RECOMMENDED_IMAGE_MODEL,
2424
)
2525
from .entity import (
@@ -80,7 +80,7 @@ async def _async_generate_data(
8080
) -> ai_task.GenDataTaskResult:
8181
"""Handle a generate data task."""
8282
await self._async_handle_chat_log(
83-
chat_log, task.structure, default_max_tokens=RECOMMENDED_A_TASK_MAX_TOKENS
83+
chat_log, task.structure, default_max_tokens=RECOMMENDED_AI_TASK_MAX_TOKENS
8484
)
8585

8686
if not isinstance(chat_log.content[-1], conversation.AssistantContent):

homeassistant/components/google_generative_ai_conversation/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
CONF_MAX_TOKENS = "max_tokens"
3434
RECOMMENDED_MAX_TOKENS = 3000
3535
# Input 5000, output 19400 = 0.05 USD
36-
RECOMMENDED_A_TASK_MAX_TOKENS = 19400
36+
RECOMMENDED_AI_TASK_MAX_TOKENS = 19400
3737
CONF_HARASSMENT_BLOCK_THRESHOLD = "harassment_block_threshold"
3838
CONF_HATE_BLOCK_THRESHOLD = "hate_block_threshold"
3939
CONF_SEXUAL_BLOCK_THRESHOLD = "sexual_block_threshold"

0 commit comments

Comments
 (0)