Reject on data.error

This commit is contained in:
valadaptive
2023-12-10 13:56:31 -05:00
parent 5fd466b53f
commit ae9445e500

View File

@@ -3915,6 +3915,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
if (data?.response) {
toastr.error(data.response, 'API Error');
}
reject(data.response);
}
console.debug('/api/chats/save called by /Generate');