-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add the ability to set the key based on the model #42
Comments
should it just be |
nvm you're right.. how about this
|
alternative.. i think thisi is a bit cleaner |
better for cases where you have maybe 1-2 alt keys, probably less ideal for a batch but i presume that case is lesser |
should address this |
@ishaan-jaff close the ticket if this works for your case |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
litellm.set_key(model)
Reason:
Not everyone sets their keys in OPENAI_API_KEY, eg
openai.api_key = get_api_key("OPENAI")
litellm should handle setting the appropriate env variables for a given model
The text was updated successfully, but these errors were encountered: