mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #16690] [CLOSED] fix: fixed an edge case where openai providers may set the model name to null #39839
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/16690
Author: @nkukard
Created: 8/17/2025
Status: ❌ Closed
Base:
dev← Head:nkupdates📝 Commits (2)
b913eb8fix: Fixed an edge case where openai providers may set the model name to null4a1cc4dMerge branch 'dev' into nkupdates📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+5 -0)📄 Description
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
Some openai endpoint providers set the model name to null, this breaks the model list sorting among other things.
This closes discussion #4150 and fixes #16689.
Fixed
Additional Information
Screenshots or Videos
Without this workaround...

With this workaround...

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.