mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
update factory.py
This commit is contained in:
parent
e1fd463f8c
commit
ecfae6d465
1 changed files with 1 additions and 1 deletions
|
|
@ -677,7 +677,7 @@ def anthropic_messages_pt_xml(messages: list):
|
|||
{
|
||||
"type": "text",
|
||||
"text": (
|
||||
convert_to_anthropic_tool_result(messages[msg_i])
|
||||
convert_to_anthropic_tool_result_xml(messages[msg_i])
|
||||
if messages[msg_i]["role"] == "tool"
|
||||
else messages[msg_i]["content"]
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue