mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #18219] [CLOSED] feat: add model parameter to use the model name returned from provider #47759
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/18219
Author: @understood-the-assignment
Created: 10/10/2025
Status: ❌ Closed
Base:
dev← Head:show-provider-model📝 Commits (1)
1716943feat: add model parameter to use the model name returned from provider📊 Changes
8 files changed (+137 additions, -4 deletions)
View changed files
📝
backend/open_webui/main.py(+17 -0)📝
backend/open_webui/utils/middleware.py(+38 -0)📝
backend/open_webui/utils/payload.py(+1 -0)📝
src/lib/apis/index.ts(+3 -1)📝
src/lib/components/chat/Chat.svelte(+27 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+10 -2)📝
src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte(+39 -0)📝
src/lib/i18n/locales/en-US/translation.json(+2 -0)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Added
use_provider_model_nameflag, stored in chat metadata and persisted in messages when the API response exposes amodelfield.Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
model-routermodel and confirmed the resolved provider model name (e.g.,gpt-5-nano-2025-08-07) appears in the chat header.npm run format:backend.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.