mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-09 21:58:00 -05:00
update requirements + fix error handler for get api
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user