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
-
)
992
968
// awaiting first chunk to see if it will throw an error
993
969
this.isWaitingForFirstChunk=true
994
970
constfirstChunk=awaititerator.next()
995
-
this.logStreamDebug(`Received first chunk: ${JSON.stringify(firstChunk.value)}`)
996
971
yieldfirstChunk.value
997
972
this.isWaitingForFirstChunk=false
998
973
}catch(error){
999
-
this.logStreamDebug(`Error on first chunk: ${error}`)
1000
974
// 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