forked from phoenix/litellm-mirror
Merge pull request #2856 from lazyhope/anthropic-tools-use-2024-04-04
Support latest Anthropic Tools Use (2024-04-04)
This commit is contained in:
commit
a50edef1e6
5 changed files with 231 additions and 59 deletions
|
@ -207,6 +207,8 @@ def map_finish_reason(
|
|||
return "stop"
|
||||
elif finish_reason == "max_tokens": # anthropic
|
||||
return "length"
|
||||
elif finish_reason == "tool_use": # anthropic
|
||||
return "tool_calls"
|
||||
return finish_reason
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue