From c56456be64c0b87d0e0e3de0fb4014b4c788106e Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 18 Jul 2024 22:45:41 -0700 Subject: [PATCH] fix(anthropic.py): revert client to requests library --- litellm/llms/anthropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/anthropic.py b/litellm/llms/anthropic.py index b666d9494..da51e887d 100644 --- a/litellm/llms/anthropic.py +++ b/litellm/llms/anthropic.py @@ -895,7 +895,7 @@ class AnthropicChatCompletion(BaseLLM): ): # if function call - fake the streaming (need complete blocks for output parsing in openai format) print_verbose("makes anthropic streaming POST request") data["stream"] = stream - response = client.post( + response = requests.post( api_base, headers=headers, data=json.dumps(data),