mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 10:02:10 -05:00
[PR #18230] [CLOSED] fix: resolve multiple issues related to long model IDs #24716
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/18230
Author: @silentoplayz
Created: 10/10/2025
Status: ❌ Closed
Base:
dev← Head:fix-workspace-model-issues📝 Commits (3)
04455f1fix: resolve multiple issues related to long model IDs58431b4fix: console error spam from workspace model clone creation page0cdb133fix: use constant📊 Changes
6 files changed (+74 additions, -70 deletions)
View changed files
📝
backend/open_webui/routers/models.py(+26 -18)📝
src/lib/apis/models/index.ts(+13 -22)📝
src/lib/components/admin/Settings/Models.svelte(+3 -3)📝
src/lib/components/workspace/Models.svelte(+29 -22)📝
src/routes/(app)/workspace/models/create/+page.svelte(+1 -4)📝
src/routes/(app)/workspace/models/edit/+page.svelte(+2 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Added
createNewModelandimportModelsendpoints to prevent the creation of new models with IDs longer than 255 characters.Changed
GET/api/v1/models/modelwas changed toPOST/api/v1/models/model.DELETE/api/v1/models/model/deletewas changed toPOST/api/v1/models/model/delete.updateModelByIdandtoggleModelByIdendpoints were updated to get the ID from the request body.Fixed
Breaking Changes
getModelById,updateModelById,toggleModelById, anddeleteModelByIdhave been modified to accept the model ID in the request body instead of as a URL query parameter. The HTTP method forgetModelByIdwas changed fromGETtoPOST, and fordeleteModelByIdfromDELETEtoPOST.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.