feat(user_api_key_auth.py): support calling langfuse with litellm user_api_key_auth

This commit is contained in:
Krrish Dholakia 2024-08-13 20:26:24 -07:00
parent 66d77f177f
commit 742e3cbccf
4 changed files with 160 additions and 7 deletions

View file

@ -309,7 +309,7 @@ async def pass_through_request(
json=_parsed_body,
)
if response.status_code != 200:
if response.status_code >= 300:
raise HTTPException(status_code=response.status_code, detail=response.text)
content = await response.aread()