From eac7e70dcaf26a7484f8374c970cb665c6992efd Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 22 May 2024 13:30:08 -0700 Subject: [PATCH] feat - include litellm_budget table when getting end_user --- litellm/proxy/auth/auth_checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index 08da25556d..fce6d4254b 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -219,7 +219,8 @@ async def get_end_user_object( # else, check db try: response = await prisma_client.db.litellm_endusertable.find_unique( - where={"user_id": end_user_id} + where={"user_id": end_user_id}, + include={"litellm_budget_table": True}, ) if response is None: