mirror of
https://github.com/open-webui/open-webui
synced 2025-06-09 07:56:42 +00:00
fix: model import
This commit is contained in:
parent
a7d8ed0c6d
commit
642dcd4b70
@ -180,7 +180,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (model) {
|
if (model) {
|
||||||
console.log(model);
|
|
||||||
name = model.name;
|
name = model.name;
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
|
@ -62,9 +62,17 @@
|
|||||||
!['https://openwebui.com', 'https://www.openwebui.com', 'http://localhost:5173'].includes(
|
!['https://openwebui.com', 'https://www.openwebui.com', 'http://localhost:5173'].includes(
|
||||||
event.origin
|
event.origin
|
||||||
)
|
)
|
||||||
)
|
) {
|
||||||
return;
|
return;
|
||||||
model = JSON.parse(event.data);
|
}
|
||||||
|
|
||||||
|
let data = JSON.parse(event.data);
|
||||||
|
|
||||||
|
if (data?.info) {
|
||||||
|
data = data.info;
|
||||||
|
}
|
||||||
|
|
||||||
|
model = data;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (window.opener ?? false) {
|
if (window.opener ?? false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user