Standardize LLM instructions prompt (#118195)
* Standardize instructions prompt * Add time/date to default instructions
This commit is contained in:
parent
98d7821f47
commit
1602c8063c
11 changed files with 56 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue