Ask LLM to pass area name and domain (#118357)

This commit is contained in:
tronikos 2024-05-29 05:03:43 -07:00 committed by GitHub
parent c75cb08aae
commit 4056c4c2cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ class AssistAPI(API):
prompt = [ prompt = [
( (
"Call the intent tools to control Home Assistant. " "Call the intent tools to control Home Assistant. "
"When controlling an area, prefer passing area name." "When controlling an area, prefer passing area name and domain."
) )
] ]
area: ar.AreaEntry | None = None area: ar.AreaEntry | None = None

View File

@ -423,7 +423,7 @@ async def test_assist_api_prompt(
) )
first_part_prompt = ( first_part_prompt = (
"Call the intent tools to control Home Assistant. " "Call the intent tools to control Home Assistant. "
"When controlling an area, prefer passing area name." "When controlling an area, prefer passing area name and domain."
) )
no_timer_prompt = "This device does not support timers." no_timer_prompt = "This device does not support timers."