Should /key/generate
require user to exist, if user_id
set?
#10391
Unanswered
CakeCrusher
asked this question in
Q&A
Replies: 2 comments
-
@CakeCrusher can you work on this ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, this isn't a bug - when we initially wrote I wouldn't view this as a bug, but definitely something we should open to discussion on whether it should be enforced moving forward. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
curl -X 'POST'
'http://localhost:4000/key/generate'
-H 'accept: application/json'
-H 'x-goog-api-key: sk-lx1rr1MTe0EzoDNXGMForQ'
-H 'Content-Type: application/json'
-d '{
"key_alias": "hi",
"models": [],
"spend": 20,
"max_budget": 20,
"user_id": "12",
"team_id": "123",
"budget_id": "frugal"
}'
user id 12 does not exist
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
1.60.5
Twitter / LinkedIn details
No response
Beta Was this translation helpful? Give feedback.
All reactions