Fix throw on /gen
| @@ -4415,7 +4415,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 4415 | 4415 | if (data?.response) { |
| 4416 | 4416 | toastr.error(data.response, 'API Error'); |
| 4417 | 4417 | } |
| 4418 | 4418 | throw new Error(data?.response); |
| 4419 | 4419 | } |
| 4420 | 4420 | |
| 4421 | 4421 | //const getData = await response.json(); |