mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Standardize LLM instructions prompt (#118195)
* Standardize instructions prompt * Add time/date to default instructions
This commit is contained in:
@@ -23,6 +23,12 @@ from .singleton import singleton
|
||||
|
||||
LLM_API_ASSIST = "assist"
|
||||
|
||||
DEFAULT_INSTRUCTIONS_PROMPT = """You are a voice assistant for Home Assistant.
|
||||
Answer in plain text. Keep it simple and to the point.
|
||||
The current time is {{ now().strftime("%X") }}.
|
||||
Today's date is {{ now().strftime("%x") }}.
|
||||
"""
|
||||
|
||||
|
||||
@callback
|
||||
def async_render_no_api_prompt(hass: HomeAssistant) -> str:
|
||||
|
||||
Reference in New Issue
Block a user