[fix] apply plain fetch option when use Streaming

This commit is contained in:
LL
2023-07-11 00:52:28 +09:00
parent 86bc533e1b
commit 2bbb0ff9ca

View File

@@ -193,7 +193,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
} }
if(db.useStreaming && arg.useStreaming){ if(db.useStreaming && arg.useStreaming){
body.stream = true body.stream = true
const da = ((!isTauri) && (!isNodeServer)) const da = ((!isTauri) && (!isNodeServer) && (!db.usePlainFetch))
? await fetch(`/proxy2`, { ? await fetch(`/proxy2`, {
body: JSON.stringify(body), body: JSON.stringify(body),
headers: { headers: {