From 4df3d43e4595c899c48848baf4864a7f59a41af0 Mon Sep 17 00:00:00 2001 From: tronikos Date: Fri, 31 May 2024 17:21:18 -0700 Subject: [PATCH] Stop instructing LLM to not pass the domain as a list (#118590) --- homeassistant/helpers/llm.py | 1 - tests/helpers/test_llm.py | 1 - 2 files changed, 2 deletions(-) diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index dd380795227..fc00c4ebac6 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -254,7 +254,6 @@ class AssistAPI(API): prompt = [ ( "When controlling Home Assistant always call the intent tools. " - "Do not pass the domain to the intent tools as a list. " "Use HassTurnOn to lock and HassTurnOff to unlock a lock. " "When controlling a device, prefer passing just its name and its domain " "(what comes before the dot in its entity id). " diff --git a/tests/helpers/test_llm.py b/tests/helpers/test_llm.py index 9c07295dec7..9ad58441277 100644 --- a/tests/helpers/test_llm.py +++ b/tests/helpers/test_llm.py @@ -421,7 +421,6 @@ async def test_assist_api_prompt( ) first_part_prompt = ( "When controlling Home Assistant always call the intent tools. " - "Do not pass the domain to the intent tools as a list. " "Use HassTurnOn to lock and HassTurnOff to unlock a lock. " "When controlling a device, prefer passing just its name and its domain " "(what comes before the dot in its entity id). "