From 5047741677d964b9692cfcf2e60ab46d10945cd5 Mon Sep 17 00:00:00 2001 From: Tim O'Farrell Date: Mon, 24 Feb 2025 08:57:47 +0000 Subject: [PATCH] Updated as suggested --- litellm/llms/anthropic/chat/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/chat/handler.py b/litellm/llms/anthropic/chat/handler.py index 00629fc8ba..22e255a7a0 100644 --- a/litellm/llms/anthropic/chat/handler.py +++ b/litellm/llms/anthropic/chat/handler.py @@ -19,6 +19,7 @@ from litellm.llms.custom_httpx.http_handler import ( AsyncHTTPHandler, HTTPHandler, get_async_httpx_client, + _get_httpx_client ) from litellm.types.llms.anthropic import ( AnthropicChatCompletionUsageBlock, @@ -404,7 +405,7 @@ class AnthropicChatCompletion(BaseLLM): else: if client is None or not isinstance(client, HTTPHandler): - client = client = litellm.module_level_client + client = _get_httpx_client() try: response = client.post(