This commit is contained in:
GH Action - Upstream Sync
2024-03-25 01:13:24 +00:00
2 changed files with 4 additions and 0 deletions

View File

@@ -151,6 +151,9 @@ export class ChatGPTApi implements LLMApi {
if (finished || controller.signal.aborted) {
responseText += remainText;
console.log("[Response Animation] finished");
if (responseText?.length === 0) {
options.onError?.(new Error("empty response from server"));
}
return;
}