mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix throw on /gen
This commit is contained in:
@ -4415,7 +4415,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
|
||||
if (data?.response) {
|
||||
toastr.error(data.response, 'API Error');
|
||||
}
|
||||
throw data?.response;
|
||||
throw new Error(data?.response);
|
||||
}
|
||||
|
||||
//const getData = await response.json();
|
||||
|
Reference in New Issue
Block a user