Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: /customer/info doesn't return litellm_budget_table #5976

Open
kvadros opened this issue Sep 30, 2024 · 0 comments · May be fixed by #5977
Open

[Bug]: /customer/info doesn't return litellm_budget_table #5976

kvadros opened this issue Sep 30, 2024 · 0 comments · May be fixed by #5977
Labels
bug Something isn't working

Comments

@kvadros
Copy link

kvadros commented Sep 30, 2024

What happened?

I created a budget (via /budget/new) and a customer with this budget (via /customer/new). I can see both the customer and the budget in the database, but the /customer/info method always returns an object without litellm_budget_table ({"user_id": "...", ... , "litellm_budget_table": null}).

I think this happens because prisma_client call in this method doesn't use the include parameter. In the /organization/info method this parameter is used (include={"litellm_budget_table": True}) and litellm_budget_table returns successfully.

I can make a PR for these changes, but I don't understand all places where this parameter should be used, so I can add them only for methods that return LiteLLM_EndUserTable.

Relevant log output

No response

Twitter / LinkedIn details

No response

@kvadros kvadros added the bug Something isn't working label Sep 30, 2024
@kvadros kvadros linked a pull request Sep 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant