mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #15323] [CLOSED] feat/improved-non-chat-model-substrings #62648
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/15323
Author: @oloflarsson
Created: 6/26/2025
Status: ❌ Closed
Base:
dev← Head:feat/improved-non-chat-model-substrings📝 Commits (1)
548bbaffeat/improved-non-chat-model-substrings📊 Changes
1 file changed (+25 additions, -16 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+25 -16)📄 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
In Short
This merge request enhances the model substring blacklist by consolidating duplicated code, adding new exclusions for non-chat models (e.g., image generators and embeddings), and ensuring consistency. It’s a non-breaking improvement between a feature and a minor bug fix.
Further Explanation
Previously, the blacklist was duplicated in the code and excluded models like Babbage, DALL-E, and Whisper. Now, we’ve:
Examples of New Exclusions
The updated blacklist now excludes models like:
Why This Matters
With the new feature supporting multiple OpenAI connections, refining this blacklist ensures irrelevant models (e.g., non-chat utilities) are consistently hidden, improving user experience.
Added
none
Changed
This merge request enhances the model substring blacklist by consolidating duplicated code, adding new exclusions for non-chat models (e.g., image generators and embeddings), and ensuring consistency.
Deprecated
none
Removed
none
Fixed
none
Security
none
Breaking Changes
none
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.