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