Skip to content

Conversation.process fails with non-Assist Conversation entity #153966

Description

@SnowKing25

The problem

When attempting to call the conversation.process action, if the target conversation entity is not set to control Home Assistant, an error is triggered.

I only have Ollama as a conversation integration set up, so I can't test with others. The ai_task.generate_image actions work with the same Ollama instance as does using the conversation.process action on a conversation entity that is set to assist in the conviguration. But, if assist is turned off, calling the action returns the error above.

What version of Home Assistant Core has the issue?

2025.10.1

What was the last working version of Home Assistant Core?

2025.9.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

conversation

Link to integration documentation on our website

https://www.home-assistant.io/integrations/conversation/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
First occurred: October 3, 2025 at 6:10:21 PM (7 occurrences)
Last logged: 7:10:29 PM

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: No APIs provided
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1012, in _async_step_call_service
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2835, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2878, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/conversation/__init__.py", line 280, in handle_process
    result = await async_converse(
             ^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/components/conversation/agent_manager.py", line 126, in async_converse
    result = await method(conversation_input)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/conversation/entity.py", line 55, in internal_async_process
    return await self.async_process(user_input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/conversation/entity.py", line 68, in async_process
    return await self._async_handle_message(user_input, chat_log)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/ollama/conversation.py", line 75, in _async_handle_message
    await chat_log.async_provide_llm_data(
    ...<4 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/components/conversation/chat_log.py", line 523, in async_provide_llm_data
    llm_api = await llm.async_get_api(
              ^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/llm.py", line 147, in async_get_api
    api = MergedAPI([apis[key] for key in api_id])
  File "/usr/src/homeassistant/homeassistant/helpers/llm.py", line 374, in __init__
    raise ValueError("No APIs provided")
ValueError: No APIs provided

Additional information

No response

Metadata

Metadata

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions