From ecfae6d465e78f8960ff2dc3fd75197de5c2dd0b Mon Sep 17 00:00:00 2001 From: Nilanjan De Date: Thu, 18 Apr 2024 22:31:08 +0400 Subject: [PATCH] update factory.py --- litellm/llms/prompt_templates/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/prompt_templates/factory.py b/litellm/llms/prompt_templates/factory.py index b71857a8b2..7ba0ee0070 100644 --- a/litellm/llms/prompt_templates/factory.py +++ b/litellm/llms/prompt_templates/factory.py @@ -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"] ),