mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
Merge bbc265d912 into 21881c5711
This commit is contained in:
commit
f54d042a0e
2 changed files with 2 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue