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

feat(proxy_server.py): add CRUD endpoints for 'end_user' management #3536

Merged
merged 3 commits into from
May 9, 2024

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented May 9, 2024

Title

allow admin to specify region + default models for end users

Relevant issues

Closes #3524

curl --location 'http://0.0.0.0:4000/end_user/new' \
--header 'Authorization: Bearer sk-1234' \ # 👈 Master Key
--header 'Content-Type: application/json' \
--data '{
      "end_user_id" : "ishaan-jaff-3", <- specific customer
    
    "allowed_region": "eu" <- set region for models        

             + 

    "default_model": "azure/gpt-3.5-turbo-eu" <- all calls from this user, use this model? 

}'

# return end-user object

Type

🆕 New Feature

Changes

  • proxy_server.py
  • routing.py

Testing

  • add testing for /end_user/new + /end_user/info

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs/my-website)

allow admin to specify region + default models for end users
Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2024 5:20am

litellm/llms/azure.py Dismissed Show dismissed Hide dismissed
@krrishdholakia krrishdholakia merged commit 66a1b58 into main May 9, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Region based routing (per end-user)
1 participant