fix exception triggered only when not logging (#15982)

This commit is contained in:
Ishaan Jaff 2025-10-27 13:45:34 -07:00 committed by GitHub
parent 17f6238d2b
commit 65afdda3ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,10 +186,6 @@ class _ProxyDBLogger(CustomLogger):
response_cost=response_cost,
max_budget=end_user_max_budget,
)
else:
raise Exception(
"User API key and team id and user id missing from custom callback."
)
else:
if kwargs["stream"] is not True or (
kwargs["stream"] is True and "complete_streaming_response" in kwargs