mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
horde.js: update for new popup
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
amount_gen,
|
amount_gen,
|
||||||
callPopup,
|
|
||||||
getRequestHeaders,
|
getRequestHeaders,
|
||||||
max_context,
|
max_context,
|
||||||
saveSettingsDebounced,
|
saveSettingsDebounced,
|
||||||
@@ -11,6 +10,7 @@ import { delay } from './utils.js';
|
|||||||
import { isMobile } from './RossAscends-mods.js';
|
import { isMobile } from './RossAscends-mods.js';
|
||||||
import { autoSelectInstructPreset } from './instruct-mode.js';
|
import { autoSelectInstructPreset } from './instruct-mode.js';
|
||||||
import { t } from './i18n.js';
|
import { t } from './i18n.js';
|
||||||
|
import { callGenericPopup, POPUP_TYPE } from './popup.js';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
horde_settings,
|
horde_settings,
|
||||||
@@ -271,7 +271,7 @@ async function generateHorde(prompt, params, signal, reportProgress) {
|
|||||||
await delay(CHECK_INTERVAL);
|
await delay(CHECK_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
callPopup('Horde request timed out. Try again', 'text');
|
await callGenericPopup(t`Horde request timed out. Try again`, POPUP_TYPE.TEXT);
|
||||||
throw new Error('Horde timeout');
|
throw new Error('Horde timeout');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user