From 335cf6545267e59852a78c6fbb826cd31095a1c2 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 19 Jul 2024 18:55:00 -0700 Subject: [PATCH] fix(anthropic.py): fix streaming client --- 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 b666d949450..da51e887d7a 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),