This commit is contained in:
JingHao-Leon 2026-10-05 11:16:24 -05:00 • committed by GitHub
commit f54d042a0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -199,6 +199,7 @@ _FINISH_REASON_MAP: Final[dict[str, OpenAIChatCompletionFinishReason]] = {
"stop_sequence": "stop",
"end_turn": "stop",
"max_tokens": "length",
"model_context_window_exceeded": "length",
"tool_use": "tool_calls",
"refusal": "content_filter",
"compaction": "length",

View file

@ -178,6 +178,7 @@ class TestMapFinishReasonAnthropic:
("stop_sequence", "stop"),
("end_turn", "stop"),
("max_tokens", "length"),
("model_context_window_exceeded", "length"),
("tool_use", "tool_calls"),
("compaction", "length"),
("content_filtered", "content_filter"),