Unable to change assistant model, when current not available

Created on 15 August 2025, 20 days ago

Problem/Motivation

When trying to change AI assistant provider from the "AI provider" dropdown, it is not possible
IF the current provider is not available.

Steps to reproduce (required for bugs, but not feature requests)

Please provide information like AI modules enabled, which AI provider, browser, etc.

Enable ollama for example and vllm.
create assistant and select your local ollama model there in the AI provider.
Now make the local ollama unavailable for Drupal, (stop the ollama for example)

Go to assistant:
/admin/config/ai/ai-assistant/ai_test_chatbot

Try to change the current provider from the Ai Provider dropdown.
Result: IT does not let you change cos the current (in this case Ollama) is not available for drupal.

it just gives error and the model dropdown for the new model is empty, so you cant choose any.

Failed to get models from Ollama: Server error: `GET http://ai.test.net/api/tags` resulted in a `503 Service Unavailable` response: <html><body><h1>503 Service Unavailable</h1> No server is available to handle this request. </body></html>
1 error has been found:

Proposed resolution

Remaining tasks

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

🐛 Bug report
Status

Active

Version

1.1

Component

...to be triaged

Created by

🇫🇮Finland anaconda777

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024