disable auto change stream mode

This commit is contained in:
2023-12-22 17:03:36 +08:00
parent fe1a796daa
commit 59d31e356b

View File

@@ -78,7 +78,6 @@ export default function ChatBOX(props: {
const _completeWithStreamMode = async (response: Response) => { const _completeWithStreamMode = async (response: Response) => {
let responseTokenCount = 0; let responseTokenCount = 0;
chatStore.streamMode = true;
const allChunkMessage: string[] = []; const allChunkMessage: string[] = [];
const allChunkTool: ToolCall[] = []; const allChunkTool: ToolCall[] = [];
setShowGenerating(true); setShowGenerating(true);
@@ -166,7 +165,6 @@ export default function ChatBOX(props: {
}; };
const _completeWithFetchMode = async (response: Response) => { const _completeWithFetchMode = async (response: Response) => {
chatStore.streamMode = false;
const data = (await response.json()) as FetchResponse; const data = (await response.json()) as FetchResponse;
chatStore.responseModelName = data.model ?? ""; chatStore.responseModelName = data.model ?? "";
if (data.model) { if (data.model) {