mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix default Google AI prompt on initial setup (#118078)
This commit is contained in:
parent
a257f63119
commit
86a24cc3b9
@ -63,7 +63,7 @@ STEP_USER_DATA_SCHEMA = vol.Schema(
|
|||||||
RECOMMENDED_OPTIONS = {
|
RECOMMENDED_OPTIONS = {
|
||||||
CONF_RECOMMENDED: True,
|
CONF_RECOMMENDED: True,
|
||||||
CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
|
CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
|
||||||
CONF_PROMPT: "",
|
CONF_PROMPT: DEFAULT_PROMPT,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ from homeassistant.components.google_generative_ai_conversation.const import (
|
|||||||
CONF_TEMPERATURE,
|
CONF_TEMPERATURE,
|
||||||
CONF_TOP_K,
|
CONF_TOP_K,
|
||||||
CONF_TOP_P,
|
CONF_TOP_P,
|
||||||
|
DEFAULT_PROMPT,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
RECOMMENDED_CHAT_MODEL,
|
RECOMMENDED_CHAT_MODEL,
|
||||||
RECOMMENDED_HARM_BLOCK_THRESHOLD,
|
RECOMMENDED_HARM_BLOCK_THRESHOLD,
|
||||||
@ -94,7 +95,7 @@ async def test_form(hass: HomeAssistant) -> None:
|
|||||||
assert result2["options"] == {
|
assert result2["options"] == {
|
||||||
CONF_RECOMMENDED: True,
|
CONF_RECOMMENDED: True,
|
||||||
CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
|
CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
|
||||||
CONF_PROMPT: "",
|
CONF_PROMPT: DEFAULT_PROMPT,
|
||||||
}
|
}
|
||||||
assert len(mock_setup_entry.mock_calls) == 1
|
assert len(mock_setup_entry.mock_calls) == 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user