From 127ea425f7b9caaa0bcbe1969e22c498863d65b2 Mon Sep 17 00:00:00 2001 From: Alex O'Connell Date: Sat, 8 Jun 2024 14:31:05 -0400 Subject: [PATCH] add is alias and fix bug report template --- .github/ISSUE_TEMPLATE/bug_report.md | 8 +++++++- custom_components/llama_conversation/agent.py | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5f0e8f7..c7b198e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,7 +7,13 @@ assignees: '' --- -***Please do not report issues with the model generating incorrect output. This includes any instance where the model responds with `Failed to run: ...` or outputs badly formatted responses. If you are having trouble getting the correct output from the model, please open a Discussion thread instead.*** + **Describe the bug** A clear and concise description of what the bug is. diff --git a/custom_components/llama_conversation/agent.py b/custom_components/llama_conversation/agent.py index 1286926..473aef9 100644 --- a/custom_components/llama_conversation/agent.py +++ b/custom_components/llama_conversation/agent.py @@ -672,7 +672,8 @@ class LocalLLMAgent(AbstractConversationAgent): "state": state, "attributes": exposed_attributes, "area_name": attributes.get("area_name"), - "area_id": attributes.get("area_id") + "area_id": attributes.get("area_id"), + "is_alias": False }) if "aliases" in attributes: for alias in attributes["aliases"]: @@ -683,7 +684,8 @@ class LocalLLMAgent(AbstractConversationAgent): "state": state, "attributes": exposed_attributes, "area_name": attributes.get("area_name"), - "area_id": attributes.get("area_id") + "area_id": attributes.get("area_id"), + "is_alias": True }) if llm_api: