Fix throw on /gen

This commit is contained in:
Cohee 2024-09-13 11:10:24 +00:00
parent 88fab65a8f
commit 0aede54cf1

View File

@ -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();