mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #13804] [CLOSED] fix: Add a case when the openai api is not standardized to return a list of models. #78164
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13804
Author: @CalunVier
Created: 5/12/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
39b0aeafix: Add a case when the openai api is not standardized to return a list of models.📊 Changes
1 file changed (+12 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+12 -0)📄 Description
fix: Add a case when the openai api is not standardized to return a list of models.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Sometimes, a non-standard OpenAI API may return an irregular list of models. When this happens, the program crashes and there is no access to the WebUI. This Pull Request handles one such non-standard response. For example:
This change does not affect behavior in any other cases.
Added
Changed
Deprecated
Removed
Fixed
{“data”: “List of model names by, split”}.Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.