You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the Start conversation via the action on a voice PE the device will not be able to respond to the request and any other request made to the device after that point with an error in the logs being
(History must start with a user turn.)
Using Google Gemini as the Ai
What version of Home Assistant Core has the issue?
core-2025.4.0b1
What was the last working version of Home Assistant Core?
Logger: homeassistant.components.assist_pipeline.pipeline
Source: components/assist_pipeline/pipeline.py:1189
integration: Assist pipeline (documentation, issues)
First occurred: 4:28:36 PM (1 occurrences)
Last logged: 4:28:36 PM
Unexpected error during intent recognition
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/assist_pipeline/pipeline.py", line 1189, in recognize_intent
conversation_result = await conversation.async_converse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/components/conversation/agent_manager.py", line 117, in async_converse
result = await method(conversation_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/conversation/entity.py", line 49, in internal_async_process
return await self.async_process(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/conversation/entity.py", line 62, in async_process
return await self._async_handle_message(user_input, chat_log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/google_generative_ai_conversation/conversation.py", line 410, in _async_handle_message
chat = self._genai_client.aio.chats.create(
model=model_name, history=messages, config=generateContentConfig
)
File "/usr/local/lib/python3.13/site-packages/google/genai/chats.py", line 516, in create
return AsyncChat(
modules=self._modules,
...<2 lines>...
history=history if history else [],
)
File "/usr/local/lib/python3.13/site-packages/google/genai/chats.py", line 379, in __init__
super().__init__(
~~~~~~~~~~~~~~~~^
model=model,
^^^^^^^^^^^^
config=config,
^^^^^^^^^^^^^^
history=history,
^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/google/genai/chats.py", line 126, in __init__
self._curated_history = _extract_curated_history(history)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/google/genai/chats.py", line 87, in _extract_curated_history
raise ValueError("History must start with a user turn.")
ValueError: History must start with a user turn.
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered:
Hey there @tronikos, @IvanLH, mind taking a look at this issue as it has been labeled with an integration (google_generative_ai_conversation) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of google_generative_ai_conversation can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign google_generative_ai_conversation Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
balloob
changed the title
Start conversation action stops LLMS on voice PE from being able to respond to any request
Start conversation action stops Google Gen AI on voice PE from being able to respond to any request
Mar 31, 2025
balloob
changed the title
Start conversation action stops Google Gen AI on voice PE from being able to respond to any request
Start conversation action stops Google Gen AI on voice PE from being able to respond until current conversation expires
Mar 31, 2025
The problem
If you use the Start conversation via the action on a voice PE the device will not be able to respond to the request and any other request made to the device after that point with an error in the logs being
(History must start with a user turn.)
Using Google Gemini as the Ai
What version of Home Assistant Core has the issue?
core-2025.4.0b1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Google Generative AI
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/google_generative_ai_conversation
Diagnostics information
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: