mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 03:18:21 -05:00
[PR #22147] [CLOSED] fix: resolve model aliases in openai proxy, responses, and embeddings endpoints #49563
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/22147
Author: @Classic298
Created: 3/2/2026
Status: ❌ Closed
Base:
dev← Head:fix/openai-proxy-alias-resolution📝 Commits (1)
91cb41cfix: resolve model aliases in openai proxy, responses, and embeddings endpoints📊 Changes
1 file changed (+28 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+28 -2)📄 Description
The proxy (catch-all), responses, and embeddings endpoints only looked up models in the OPENAI_MODELS cache, which contains real backend models but not workspace alias models. When an alias model was requested, it was not found and the request either fell back to the wrong backend (idx=0) or the upstream returned 404 for the unrecognized alias name.
Now all three endpoints check the Models DB for workspace aliases and resolve base_model_id before routing, matching the existing behavior in generate_chat_completion.
Fixes #22134
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.