mirror of
https://github.com/ChatGPTNextWeb/NextChat.git
synced 2026-02-16 08:15:58 +08:00
fix: onfinish responseRes
This commit is contained in:
@@ -70,7 +70,7 @@ export interface ChatOptions {
|
||||
config: LLMConfig;
|
||||
|
||||
onUpdate?: (message: string, chunk: string) => void;
|
||||
onFinish: (message: string) => void;
|
||||
onFinish: (message: string, responseRes: Response) => void;
|
||||
onError?: (err: Error) => void;
|
||||
onController?: (controller: AbortController) => void;
|
||||
onBeforeTool?: (tool: ChatMessageTool) => void;
|
||||
|
||||
Reference in New Issue
Block a user