Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/methods/chat-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ export class ChatSession {
}
}
finalResult = result;
})
.catch((e) => {
// Resets _sendPromise to avoid subsequent calls failing and throw error.
this._sendPromise = Promise.resolve();
throw e;
});
await this._sendPromise;
return finalResult;
Expand Down