We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e36da34 commit eab7e56Copy full SHA for eab7e56
src/providers/utils/finishReasonMap.ts
@@ -14,6 +14,6 @@ export const finishReasonMap = new Map<PROVIDER_FINISH_REASON, FINISH_REASON>([
14
[BEDROCK_STOP_REASON.tool_use, FINISH_REASON.tool_calls],
15
[BEDROCK_STOP_REASON.max_tokens, FINISH_REASON.length],
16
[BEDROCK_STOP_REASON.stop_sequence, FINISH_REASON.stop],
17
- [BEDROCK_STOP_REASON.guardrail_intervened, FINISH_REASON.stop],
18
- [BEDROCK_STOP_REASON.content_filtered, FINISH_REASON.stop],
+ [BEDROCK_STOP_REASON.guardrail_intervened, FINISH_REASON.content_filter],
+ [BEDROCK_STOP_REASON.content_filtered, FINISH_REASON.content_filter],
19
]);
0 commit comments