From 17d547325a5583777741c641221484d50575e7a0 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Tue, 10 Dec 2024 23:33:32 +0300 Subject: [PATCH] refactor(docs): updated README services examples with more detailed configuration --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 346f27c..103e1b9 100644 --- a/README.md +++ b/README.md @@ -274,6 +274,8 @@ data: ### clear_history ```yaml service: ha_text_ai.clear_history +data: + instance: sensor.ha_text_ai_gpt ``` ### get_history @@ -282,6 +284,7 @@ service: ha_text_ai.get_history data: limit: 5 # optional filter_model: "gpt-4o" # optional + instance: sensor.ha_text_ai_gpt ``` ### 🏷️ HA Text AI Sensor Naming Convention @@ -404,7 +407,7 @@ automation: # Number of entries in current history file {{ state_attr('sensor.ha_text_ai_gpt', 'History size') }} # 0 -# Last few conversation entries (limited to 3 for performance) +# Last few conversation entries (limited to 1 for performance) {{ state_attr('sensor.ha_text_ai_gpt', 'conversation_history') }} # [...] ```