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: add litellm user api #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Gilles-Marco
Copy link

Dependency

PR dependent of #6

Changes

Added the feature to create/update/delete/read litellm user

Testing

Here is the terraform test resource I used

resource "litellm_user" "example_user" {
    user_id = "[email protected]"
    user_alias = "[email protected]"
    user_email = "[email protected]"
    user_role = "proxy_admin"
    metadata = {
      "test-metadata" = "test"
    }
    max_budget = 10.2
    rpm_limit = 15
    tpm_limit = 10
    auto_create_key = false
    budget_duration = "30d"
    models = ["azure/gpt-4o"]
    send_invite_mail = false
}

Why no teams

Same reason #7
I don't think it's a good idea for the provider to be able to register an user in a team by multiple ways. It adds a lot of complexity for the provider maintainers, and forcing maintainers to make an opinionated decision about how to do it.
The simplest way for me and unopinionated one, is to have a resource dedicated to it. It doesn't add a lot of complexity for terraform users that way.

Team membership resource will be added on the future, it is actually the next resource I will be providing.

@Gilles-Marco Gilles-Marco changed the title Add litellm user api feat: add litellm user api Nov 18, 2024
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.

1 participant