mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
Updated as suggested
This commit is contained in:
parent
d5215d428f
commit
5047741677
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue