Standardize LLM instructions prompt (#118195)

* Standardize instructions prompt

* Add time/date to default instructions
This commit is contained in:
Paulus Schoutsen 2024-05-26 20:24:26 -04:00 committed by GitHub
parent 98d7821f47
commit 1602c8063c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 56 additions and 19 deletions

View file

@ -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: