Skip to content

Commit

Permalink
Add explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 30, 2024
1 parent bf05722 commit 2445dc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/participant/prompts/promptBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ export abstract class PromptBase<TArgs extends PromptArgsBase> {
historyItem.result.errorDetails?.message ===
ParticipantErrorTypes.FILTERED
) {
// If the response led to a filtered error, we do not want the
// error-causing message to be sent again so we remove it.
messages.pop();
continue;
}
Expand Down

0 comments on commit 2445dc5

Please sign in to comment.