mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-05 21:46:49 +01:00
Save models before emitting status change
This commit is contained in:
parent
d08f964c2d
commit
44cc81fa73
@ -3338,12 +3338,12 @@ async function getStatusOpen() {
|
||||
|
||||
const responseData = await response.json();
|
||||
|
||||
if (!('error' in responseData)) {
|
||||
setOnlineStatus('Valid');
|
||||
}
|
||||
if ('data' in responseData && Array.isArray(responseData.data)) {
|
||||
saveModelList(responseData.data);
|
||||
}
|
||||
if (!('error' in responseData)) {
|
||||
setOnlineStatus('Valid');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user