mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-22 16:56:29 +00:00
Document provide LLM data
This commit is contained in:
parent
41fc4de3a6
commit
46cb895fbb
@ -86,11 +86,11 @@ class MyConversationEntity(conversation.ConversationEntity):
|
||||
"""Call the API."""
|
||||
|
||||
try:
|
||||
await chat_log.async_update_llm_data(
|
||||
DOMAIN,
|
||||
user_input,
|
||||
await chat_log.async_provide_llm_data(
|
||||
user_input.as_llm_context(DOMAIN),
|
||||
self.entry.options.get(CONF_LLM_HASS_API),
|
||||
self.entry.options.get(CONF_PROMPT),
|
||||
user_input.extra_system_prompt,
|
||||
)
|
||||
except conversation.ConverseError as err:
|
||||
return err.as_conversation_result()
|
||||
|
Loading…
x
Reference in New Issue
Block a user