fixed streaming header check

This commit is contained in:
c0sogi
2023-07-01 18:01:05 +09:00
parent d0c896a7e4
commit 0179158597

View File

@@ -209,7 +209,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
} }
} }
if(da.headers.get('Content-Type') !== 'text/event-stream'){ if (!da.headers.get('Content-Type').includes('text/event-stream')){
return { return {
type: "fail", type: "fail",
result: await da.text() result: await da.text()