mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #24663] [CLOSED] fix: fallback to first available model when model_id is missing or empty #131430
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/24663
Author: @yahyasaqban-lab
Created: 5/13/2026
Status: ❌ Closed
Base:
dev← Head:fix/auto-title-empty-model📝 Commits (10+)
fe6783cMerge pull request #19030 from open-webui/devfc05e0aMerge pull request #19405 from open-webui/deve3faec6Merge pull request #19416 from open-webui/dev9899293Merge pull request #19448 from open-webui/dev140605eMerge pull request #19462 from open-webui/dev6f1486fMerge pull request #19466 from open-webui/devd95f533Merge pull request #19729 from open-webui/deva7271530.6.43 (#20093)6adde20Merge pull request #20394 from open-webui/devf9b0534Merge pull request #20522 from open-webui/dev📊 Changes
1 file changed (+56 additions, -32 deletions)
View changed files
📝
backend/open_webui/routers/tasks.py(+56 -32)📄 Description
Summary
Fixes auto-title generation when the frontend sends an empty or missing model_id. Instead of returning a 404 error, the backend gracefully falls back to the first available model.
Changes
Applied to all task endpoints in
tasks.py:model_idis empty or missing and there are no models, still return 404model_idis not found but models exist, fall back to the first available modelCloses #24604
CLA
I agree that my contributions to Open WebUI are licensed under the MIT License.
By submitting this pull request, I confirm that:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.