mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(pass_through_endpoints.py): fix client init
This commit is contained in:
parent
4ca677638f
commit
7a95132a03
2 changed files with 4 additions and 5 deletions
|
@ -23,8 +23,6 @@ from litellm.integrations.custom_logger import CustomLogger
|
|||
from litellm.proxy._types import ProxyException, UserAPIKeyAuth
|
||||
from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
|
||||
|
||||
async_client = httpx.AsyncClient()
|
||||
|
||||
|
||||
async def set_env_variables_in_header(custom_headers: dict):
|
||||
"""
|
||||
|
@ -277,6 +275,8 @@ async def pass_through_request(
|
|||
call_type="pass_through_endpoint",
|
||||
)
|
||||
|
||||
async_client = httpx.AsyncClient()
|
||||
|
||||
response = await async_client.request(
|
||||
method=request.method,
|
||||
url=url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue