mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Allow automations to pass any conversation_id for Google Generative AI (#134251)
This commit is contained in:
parent
53ca31c112
commit
f1ad3040b8
@ -204,9 +204,7 @@ class GoogleGenerativeAIConversationEntity(
|
|||||||
"""Process a sentence."""
|
"""Process a sentence."""
|
||||||
result = conversation.ConversationResult(
|
result = conversation.ConversationResult(
|
||||||
response=intent.IntentResponse(language=user_input.language),
|
response=intent.IntentResponse(language=user_input.language),
|
||||||
conversation_id=user_input.conversation_id
|
conversation_id=user_input.conversation_id or ulid.ulid_now(),
|
||||||
if user_input.conversation_id in self.history
|
|
||||||
else ulid.ulid_now(),
|
|
||||||
)
|
)
|
||||||
assert result.conversation_id
|
assert result.conversation_id
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user