mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
issue: Workspace > Models: import of single model not working without response #4597
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?
Originally created by @MaxStroh on GitHub (Mar 28, 2025).
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Kubernetes / Ubuntu
Browser (if applicable)
Chrome 134.0.6998.166, Firefox 136.0.4
Confirmation
README.md.Expected Behavior
Actual Behavior
Steps to Reproduce
Logs & Screenshots
Export single model:

Import JSON file:

Browser Logs:

Additional Information
Also, I found the following code snippet in the code, which was a hint, why the single exported model file is not working:
b03fc97e28/src/lib/components/workspace/Models.svelte (L420-L434)So my suggestion is, that inside the for loop, it is looked for a field named "info", if it is missing - simply nothing is done, the content of the model config is skipped and nothing happens
So I thought "what if I just wrap the whole content of the single exported json file inside a field named "info" - et voilà: it worked! I was able to import the following single-model-file via the 'Workspace' > 'Models' > 'Import models' button without any errors:
Short disclaimer:
Exported single model json file (not working):
demo-model-1743179018399.json
Export all models json file (working, but includes all models):
models-export-1743179408340.json
Modified (and able to import) single model json file:
modified-demo-model.json
@tjbck commented on GitHub (Mar 29, 2025):
PR Welcome!
@tjbck commented on GitHub (Mar 31, 2025):
Addressed with
300b7dfcc0