Skip to content

Commit

Permalink
update requirements + fix error handler for get api
Browse files Browse the repository at this point in the history
  • Loading branch information
acon96 committed Jun 8, 2024
1 parent ce4508b commit 50bcd2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/llama_conversation/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,12 @@ async def async_process(
)
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
)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50bcd2e

Please sign in to comment.