From 37ef5c0cbf4399ab2ed899af89f081cb9335aed2 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 5 Apr 2024 16:10:54 -0700 Subject: [PATCH] fix - test using specific commit --- litellm/__init__.py | 2 ++ litellm/llms/prompt_templates/factory.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index fb513c133..3d4ea021a 100644 --- a/litellm/__init__.py +++ b/litellm/__init__.py @@ -7,6 +7,8 @@ from litellm.proxy._types import KeyManagementSystem, KeyManagementSettings import httpx import dotenv +print("IMPORT LITELLM on Ishaan's commit") # noqa + dotenv.load_dotenv() ############################################# if set_verbose == True: diff --git a/litellm/llms/prompt_templates/factory.py b/litellm/llms/prompt_templates/factory.py index cc984a484..5d3d70a59 100644 --- a/litellm/llms/prompt_templates/factory.py +++ b/litellm/llms/prompt_templates/factory.py @@ -692,7 +692,7 @@ def anthropic_messages_pt_xml(messages: list): if messages[msg_i].get( "tool_calls", [] ): # support assistant tool invoke convertion - assistant_text += convert_to_anthropic_tool_invoke( + assistant_text += convert_to_anthropic_tool_invoke( # type: ignore messages[msg_i]["tool_calls"] )