This commit is contained in:
JingHao-Leon 2026-10-09 14:26:02 -04:00 • committed by GitHub
commit ea791d16f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -200,6 +200,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

@ -207,6 +207,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"),