mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-18 10:48:00 -05:00
[GH-ISSUE #1012] Connect, pull & delete models working, but cannot select model to chat #50963
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @suderman on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1012
Bug Report
Description
Bug Summary:
I can connect to Ollama, pull and delete models, but I cannot select a model.
Steps to Reproduce:
http://host.docker.internal:11434and clicking button displays: "Server connection verified"phi:latestand clicking the button displays: "Model 'phi:latest' has been successfully downloaded."phi:latest> and clicking "Set as default" displays: "Default model updated"Expected Behavior:
Ollama to greet to say hello back.
Actual Behavior:
Error connecting to Ollama. Appears the UI is not setting and/or providing a selected model to the backend.
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:

Docker Container Logs:
Screenshots (if applicable):
Installation Method
I'm using the ollama service found in NixOS unstable here as part of a custom module that runs the ghcr.io/open-webui/open-webui image in a docker container. Here's my custom nixos module:
Additional Information
I don't think it's a connection issue because I can communicate with ollama via curl from within the container. First I attach to the container and install curl:
And then I'm able to run
curl host.docker.internal:11434/api/generateand say hello to with the following results:@tjbck commented on GitHub (Mar 3, 2024):
Unable to reproduce, could you share your screenshot of the network tab with the chat request highlighted?
@suderman commented on GitHub (Mar 3, 2024):
Firefox:

Chromium:

@suderman commented on GitHub (Mar 3, 2024):
Is each model
<option>in the<select>box supposed to have empty value attributes? Also, after choosing one, the select box no longer responds and doesn't respond to clicks.@tjbck commented on GitHub (Mar 3, 2024):
Here's what they should look like.
@suderman commented on GitHub (Mar 3, 2024):
I figured out the problem: my ollama was out of date. I upgraded from 0.1.17 to 0.1.27 and now it's all good. Sorry for the hassle!