Updated as suggested

This commit is contained in:
Tim O'Farrell 2025-02-24 08:57:47 +00:00
parent d5215d428f
commit 5047741677

View file

@ -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(