Add claude error handling

This commit is contained in:
kwaroran
2024-03-07 06:50:36 +09:00
parent 604ed57627
commit 305812f35e

View File

@@ -1617,6 +1617,15 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
} }
break break
} }
case 'error': {
if(e.data){
text += "Error:" + JSON.parse(e.data).error?.message
controller.enqueue({
"0": text
})
}
break
}
} }
} }