mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 23:20:28 +08:00
fix: #1612 infinite loading
This commit is contained in:
@@ -28,6 +28,7 @@ export const ChatControllerPool = {
|
||||
|
||||
remove(sessionIndex: number, messageId: number) {
|
||||
const key = this.key(sessionIndex, messageId);
|
||||
this.controllers[key]?.abort();
|
||||
delete this.controllers[key];
|
||||
},
|
||||
|
||||
|
@@ -6,7 +6,7 @@ import Locale from "../../locales";
|
||||
import {
|
||||
EventStreamContentType,
|
||||
fetchEventSource,
|
||||
} from "@microsoft/fetch-event-source";
|
||||
} from "@fortaine/fetch-event-source";
|
||||
import { prettyObject } from "@/app/utils/format";
|
||||
|
||||
export class ChatGPTApi implements LLMApi {
|
||||
@@ -145,6 +145,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
},
|
||||
onerror(e) {
|
||||
options.onError?.(e);
|
||||
throw e;
|
||||
},
|
||||
openWhenHidden: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user