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

[Feature]: Store abbreviated string of sk-key (sk-...<last-3-digits>) like openai in db #1614

Closed
krrishdholakia opened this issue Jan 25, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@krrishdholakia
Copy link
Contributor

The Feature

Store the abbreviated string of sk-key in db like openai does (can do this in the token and spend logs table)

Screenshot 2024-01-25 at 9 49 39 AM

Motivation, pitch

easier for app owner viewing their spend logs to know which sk-key is causing a high spend

Twitter / LinkedIn details

No response

@krrishdholakia
Copy link
Contributor Author

Checking with users if this is something they'd want

@krrishdholakia
Copy link
Contributor Author

Seems like this should be opt-in.

Since this is for key-owners happiness, and we already gate key-owner specific permissions behind allow_user_auth - https://docs.litellm.ai/docs/proxy/ui#step-2-enable-user-auth

We can gate this feature behind that too.

@krrishdholakia
Copy link
Contributor Author

Live in v1.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant