open-webui/src/lib/components
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
..
admin feat: refactor model import to a single backend endpoint 2025-09-28 18:49:42 -04:00
app chore: streamline the URL used for resources like favicon.png 2025-07-09 09:14:51 +02:00
channel enh: reply to message 2025-09-27 04:05:12 -05:00
chat refac 2025-09-28 14:59:30 -05:00
common security: svg xss fix 2025-09-25 14:29:50 -05:00
icons refac 2025-09-28 15:18:12 -05:00
layout refac 2025-09-28 13:09:09 -05:00
notes fix: truncate more long names in delete confirmation modals 2025-09-26 23:56:18 -04:00
playground fix: i81n.t and correct button layout issue 2025-09-27 15:45:25 -04:00
workspace fix: truncate more long names in delete confirmation modals 2025-09-26 23:56:18 -04:00
AddConnectionModal.svelte chore: format 2025-09-17 11:11:46 -05:00
AddFilesPlaceholder.svelte refac: styling 2025-09-13 00:37:45 +04:00
AddToolServerModal.svelte refac 2025-09-26 22:57:38 -05:00
ChangelogModal.svelte refac: styling 2025-09-20 00:56:25 -05:00
ImportModal.svelte refac 2025-06-27 15:44:26 +04:00
NotificationToast.svelte refac: styling 2025-09-15 16:28:37 -05:00
OnBoarding.svelte refac: styling 2025-08-05 20:31:10 +04:00