mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
Merge 5047741677
into b82af5b826
This commit is contained in:
commit
3305542d64
1 changed files with 2 additions and 3 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 (
|
||||
ContentBlockDelta,
|
||||
|
@ -414,9 +415,7 @@ class AnthropicChatCompletion(BaseLLM):
|
|||
|
||||
else:
|
||||
if client is None or not isinstance(client, HTTPHandler):
|
||||
client = HTTPHandler(timeout=timeout) # type: ignore
|
||||
else:
|
||||
client = client
|
||||
client = _get_httpx_client()
|
||||
|
||||
try:
|
||||
response = client.post(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue