Skip to content

Commit eab7e56

Browse files
committed
fix finish reason mapping as per comments
1 parent e36da34 commit eab7e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/utils/finishReasonMap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export const finishReasonMap = new Map<PROVIDER_FINISH_REASON, FINISH_REASON>([
1414
[BEDROCK_STOP_REASON.tool_use, FINISH_REASON.tool_calls],
1515
[BEDROCK_STOP_REASON.max_tokens, FINISH_REASON.length],
1616
[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],
17+
[BEDROCK_STOP_REASON.guardrail_intervened, FINISH_REASON.content_filter],
18+
[BEDROCK_STOP_REASON.content_filtered, FINISH_REASON.content_filter],
1919
]);

0 commit comments

Comments
 (0)