diff --git a/public/script.js b/public/script.js index 1d08d4525..da86a9875 100644 --- a/public/script.js +++ b/public/script.js @@ -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');