mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #17875] [CLOSED] feat: Refactor Workspace Model Import to Backend #63441
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/17875
Author: @silentoplayz
Created: 9/29/2025
Status: ❌ Closed
Base:
dev← Head:feat-workspace-model-import-refactor📝 Commits (1)
d4c4080feat: Refactor Workspace Model Import to Backend📊 Changes
3 files changed (+101 additions, -37 deletions)
View changed files
📝
backend/open_webui/routers/models.py(+41 -0)📝
src/lib/apis/models/index.ts(+28 -0)📝
src/lib/components/workspace/Models.svelte(+32 -37)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Workspacesection. The core logic for processing imported models has been moved from the frontend to the backend to improve performance and reliability. Instead of the client sending an individual API request for each model in a JSON file, it now sends the entire set of models to a new backend endpoint in a single, efficient transaction.Added
POST /api/v1/models/import, that accepts a list of model objects and handles their creation or update in the database.Changed
Removed
Security
/api/v1/models/importendpoint is restricted to admin users, ensuring that only authorized users can perform bulk model imports.Additional Information
Screenshots or Videos
Time to import workspace custom models from a JSON file previously (1 REQUEST PER WORKSPACE MODEL):

Time to import workspace custom models from a JSON file with these changes applied (1 REQUEST):

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.