From 1f7245ecf2130f092e0657f1027ab1aa586284ee Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 22 May 2024 21:17:03 -0400 Subject: [PATCH] Update LLM no tools message (#117935) --- homeassistant/helpers/llm.py | 4 ++-- .../snapshots/test_conversation.ambr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index 670f9eadda2..081ac39e9d9 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -20,8 +20,8 @@ from .singleton import singleton LLM_API_ASSIST = "assist" PROMPT_NO_API_CONFIGURED = ( - "If the user wants to control a device, tell them to edit the AI configuration and " - "allow access to Home Assistant." + "Only if the user wants to control a device, tell them to edit the AI configuration " + "and allow access to Home Assistant." ) diff --git a/tests/components/google_generative_ai_conversation/snapshots/test_conversation.ambr b/tests/components/google_generative_ai_conversation/snapshots/test_conversation.ambr index 30e4b553848..f296c3a37c3 100644 --- a/tests/components/google_generative_ai_conversation/snapshots/test_conversation.ambr +++ b/tests/components/google_generative_ai_conversation/snapshots/test_conversation.ambr @@ -37,7 +37,7 @@ - Test Device 4 - 1 (3) - If the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant. + Only if the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant. ''', 'role': 'user', }), @@ -96,7 +96,7 @@ - Test Device 4 - 1 (3) - If the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant. + Only if the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant. ''', 'role': 'user', }),