update requirements + fix error handler for get api

This commit is contained in:
Alex O'Connell
2024-06-08 13:05:57 -04:00
parent ce4508b9ed
commit 50bcd2e7ea
2 changed files with 3 additions and 2 deletions

View File

@@ -254,11 +254,12 @@ class LocalLLMAgent(AbstractConversationAgent):
)
except HomeAssistantError as err:
_LOGGER.error("Error getting LLM API: %s", err)
intent_response = intent.IntentResponse(language=user_input.language)
intent_response.async_set_error(
intent.IntentResponseErrorCode.UNKNOWN,
f"Error preparing LLM API: {err}",
)
return conversation.ConversationResult(
return ConversationResult(
response=intent_response, conversation_id=user_input.conversation_id
)

View File

@@ -18,7 +18,7 @@ huggingface-hub==0.23.0
webcolors==1.13
# types from Home Assistant
homeassistant
homeassistant>=2024.6.1
hassil
home-assistant-intents