You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Starting API request - Previous index: ${previousApiReqIndex}, Retry attempt: ${retryAttempt}`,
991
+
)
968
992
// awaiting first chunk to see if it will throw an error
969
993
this.isWaitingForFirstChunk=true
970
994
constfirstChunk=awaititerator.next()
995
+
this.logStreamDebug(`Received first chunk: ${JSON.stringify(firstChunk.value)}`)
971
996
yieldfirstChunk.value
972
997
this.isWaitingForFirstChunk=false
973
998
}catch(error){
999
+
this.logStreamDebug(`Error on first chunk: ${error}`)
974
1000
// note that this api_req_failed ask is unique in that we only present this option if the api hasn't streamed any content yet (ie it fails on the first chunk due), as it would allow them to hit a retry button. However if the api failed mid-stream, it could be in any arbitrary state where some tools may have executed, so that error is handled differently and requires cancelling the task entirely.
0 commit comments