mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 01:22:00 -05:00
TabbyAPI / Any emulated OpenAI server is not working, only the real OpenAI #2116
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 @Subarasheese on GitHub (Sep 18, 2024).
Bug Report
Installation Method
Docker
Environment
Open WebUI Version: v0.3.21
Operating System: Linux
Browser (if applicable): Firefox
Confirmation:
Expected Behavior:
OpenWebUI to display the list of base models after successfully connecting to the API.
Actual Behavior:
OpenWebUI succesfully connects to the custom TabbyAPI endpoint (OpenAI-compatible), however the models are not being listed on the UI.
Description
Bug Summary:
I am running a TabbyAPI endpoint on my local machine, followed all steps and correctly set up the docker image to "see" the API running on the host system. I can get logs from Tabby and it seems to be pinged just fine (/v1/models return 200 OK), however, for mysterious reasons, OpenWebUI is not showing a list of models despite Tabby succesfully returning a json file a model list in the same format as OpenAI. OpenAI's API is working fine, though. So I suspect there is something hardcoded to OpenAI's endpoint somewhere.
Reproduction Details
Steps to Reproduce:
1 - Run any mock API that mimics OpenAI's outputs for /v1/models
2 - Use that as an OpenAI endpoint on OpenWebUI. In my case, the Docker image sees it as http://172.17.0.1:5000/v1
3 - It returns success, however, the models themselves are not being listed, despite the fake OpenAI API returning correct responses and listing models normally.
Logs and Screenshots
Browser Console Logs:
usage Object { models: [] } models: Array [] length: 0Docker Container Logs:
Screenshots/Screen Recordings (if applicable):



Additional Information
TabbyAPI can be downloaded right here:
https://github.com/theroyallab/tabbyAPI
If you need to create a mock API, use OpenAI's response for /v1/models as seen below: