From 59d31e356baee3dd18e27087b6cdf5cdceeaae31 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 22 Dec 2023 17:03:36 +0800 Subject: [PATCH] disable auto change stream mode --- src/chatbox.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 315a7e8..bf85fdd 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -78,7 +78,6 @@ export default function ChatBOX(props: { const _completeWithStreamMode = async (response: Response) => { let responseTokenCount = 0; - chatStore.streamMode = true; const allChunkMessage: string[] = []; const allChunkTool: ToolCall[] = []; setShowGenerating(true); @@ -166,7 +165,6 @@ export default function ChatBOX(props: { }; const _completeWithFetchMode = async (response: Response) => { - chatStore.streamMode = false; const data = (await response.json()) as FetchResponse; chatStore.responseModelName = data.model ?? ""; if (data.model) {