Skip to content

Commit 017cd0b

Browse files
balloobclaude
andauthored
Update OpenAI conversation max tokens to 3000 (home-assistant#148623)
Co-authored-by: Claude <[email protected]>
1 parent 1920edd commit 017cd0b

File tree

2 files changed

+2
-2
lines changed
  • homeassistant/components/openai_conversation
  • tests/components/openai_conversation

2 files changed

+2
-2
lines changed

homeassistant/components/openai_conversation/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
CONF_WEB_SEARCH_COUNTRY = "country"
2929
CONF_WEB_SEARCH_TIMEZONE = "timezone"
3030
RECOMMENDED_CHAT_MODEL = "gpt-4o-mini"
31-
RECOMMENDED_MAX_TOKENS = 150
31+
RECOMMENDED_MAX_TOKENS = 3000
3232
RECOMMENDED_REASONING_EFFORT = "low"
3333
RECOMMENDED_TEMPERATURE = 1.0
3434
RECOMMENDED_TOP_P = 1.0

tests/components/openai_conversation/test_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ async def test_generate_content_service(
381381
"""Test generate content service."""
382382
service_data["config_entry"] = mock_config_entry.entry_id
383383
expected_args["model"] = "gpt-4o-mini"
384-
expected_args["max_output_tokens"] = 150
384+
expected_args["max_output_tokens"] = 3000
385385
expected_args["top_p"] = 1.0
386386
expected_args["temperature"] = 1.0
387387
expected_args["user"] = None

0 commit comments

Comments
 (0)