[fix] streaming retrys
This commit is contained in:
@@ -30,7 +30,7 @@ export async function requestChatData(arg:requestDataArgument, model:'model'|'su
|
|||||||
let trys = 0
|
let trys = 0
|
||||||
while(true){
|
while(true){
|
||||||
const da = await requestChatDataMain(arg, model)
|
const da = await requestChatDataMain(arg, model)
|
||||||
if(da.type === 'success'){
|
if(da.type === 'success' || da.type === 'streaming'){
|
||||||
return da
|
return da
|
||||||
}
|
}
|
||||||
trys += 1
|
trys += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user