open-webui/src/lib/apis
silentoplayz fe28097817 feat: refactor model import to a single backend endpoint
This refactors the model import functionality to improve performance and user experience by centralizing the logic on the backend.

Previously, the frontend would parse an imported JSON file and send an individual API request for each model, which was slow and inefficient.

This change introduces a new backend endpoint, `/api/v1/models/import`, that accepts a list of model objects. The frontend now reads the selected JSON file, parses it, and sends the entire payload to the backend in a single request. The backend then processes this list, creating or updating models as necessary.

This commit also includes the following fixes:
- Handles cases where the imported JSON contains models without `meta` or `params` fields by providing default empty values.
2025-09-28 18:49:42 -04:00
..
audio feat: user stt language 2025-05-24 00:36:30 +04:00
auths refac: account details 2025-08-21 02:39:25 +04:00
channels enh: reply to message 2025-09-27 04:05:12 -05:00
chats feat: add backend handling for unarchiving all chats 2025-09-28 13:25:34 -04:00
configs feat: oauth2.1 mcp integration 2025-09-25 01:49:16 -05:00
evaluations Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
files fix: show error message when the uploading file is modified 2025-09-26 17:31:16 +08:00
folders enh: emoji folder icon 2025-09-04 02:50:50 +04:00
functions feat: load function from url 2025-05-26 23:52:22 +04:00
groups Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
images Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
knowledge Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
memories Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
models feat: refactor model import to a single backend endpoint 2025-09-28 18:49:42 -04:00
notes refac/feat: note/knowledge/chat select input menu 2025-09-14 09:54:06 +02:00
ollama fix: models not loading 2025-08-21 12:33:26 +04:00
openai refac/enh: forward headers to tool server 2025-09-01 01:52:10 +04:00
prompts Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
retrieval refac: PLEASE follow existing convention 2025-05-30 00:34:18 +04:00
streaming chore: format 2024-12-17 13:51:29 -08:00
tools enh: load tool by url 2025-05-29 02:08:54 +04:00
users enh: channel suggestions 2025-09-16 21:41:47 -05:00
utils Changed console logging of errors to use console error logging 2025-05-15 21:35:07 +02:00
index.ts refac 2025-09-26 22:09:27 -05:00