disable auto change stream mode
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user