[fix] streaming retrys

This commit is contained in:
kwaroran
2023-05-19 19:25:54 +09:00
parent d30fd7b214
commit c7d6e3b61d

View File

@@ -30,7 +30,7 @@ export async function requestChatData(arg:requestDataArgument, model:'model'|'su
let trys = 0
while(true){
const da = await requestChatDataMain(arg, model)
if(da.type === 'success'){
if(da.type === 'success' || da.type === 'streaming'){
return da
}
trys += 1