Skip to content

Commit 1920edd

Browse files
balloobclaude
andauthored
Update Google Generative AI Conversation max tokens to 3000 (home-assistant#148625)
Co-authored-by: Claude <[email protected]>
1 parent 2dca78e commit 1920edd

File tree

2 files changed

+2
-2
lines changed
  • homeassistant/components/google_generative_ai_conversation
  • tests/components/google_generative_ai_conversation/snapshots

2 files changed

+2
-2
lines changed

homeassistant/components/google_generative_ai_conversation/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
CONF_TOP_K = "top_k"
2626
RECOMMENDED_TOP_K = 64
2727
CONF_MAX_TOKENS = "max_tokens"
28-
RECOMMENDED_MAX_TOKENS = 1500
28+
RECOMMENDED_MAX_TOKENS = 3000
2929
CONF_HARASSMENT_BLOCK_THRESHOLD = "harassment_block_threshold"
3030
CONF_HATE_BLOCK_THRESHOLD = "hate_block_threshold"
3131
CONF_SEXUAL_BLOCK_THRESHOLD = "sexual_block_threshold"

tests/components/google_generative_ai_conversation/snapshots/test_diagnostics.ambr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'dangerous_block_threshold': 'BLOCK_MEDIUM_AND_ABOVE',
2222
'harassment_block_threshold': 'BLOCK_MEDIUM_AND_ABOVE',
2323
'hate_block_threshold': 'BLOCK_MEDIUM_AND_ABOVE',
24-
'max_tokens': 1500,
24+
'max_tokens': 3000,
2525
'prompt': 'Speak like a pirate',
2626
'recommended': False,
2727
'sexual_block_threshold': 'BLOCK_MEDIUM_AND_ABOVE',

0 commit comments

Comments
 (0)