fix: describe local intent answers to the model instead of replaying them
validate / hassfest (push) Failing after 1m2s
validate / hacs (push) Failing after 1m11s
test / pytest (push) Successful in 1m36s

With prefer_local_intents, Home Assistant puts requests its local intents
answered into the chat log as external calls of intents like
HassGetCurrentTime. The model does not have these tools, and replayed as
its own calls they make it apologise for using tools it does not have and
doubt answers it never gave. They are now passed as a developer note with
the intent, its arguments and its result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pc-heiniandClaude Opus 5.5 committed 2026-10-22 10:35:26 +02:00
1 parent e54f0f0fa1
commit 6aed494e44
3 files changed
+77 -1

No files matched your search

+4
View File
@@ -18,6 +18,10 @@
> lookup for web search uses the subentry's model instead of `gpt-4o-mini` and asks
> as a user message (Anthropic needs one); a failed lookup no longer blocks saving
> the options, and empty location fields are left out of the web search tool.
> - Requests that Home Assistant's local intents answered (`prefer_local_intents`) are
> described to the model in a note instead of being replayed as its own calls of
> intents like `HassGetCurrentTime`, which are not among its tools; replayed, they
> make it apologise for using tools it does not have. Not reported upstream yet.
>
> HACS only installs from GitHub, so this fork is installed by copying
> `custom_components/openai_compatible` into the Home Assistant config.