add PR #14 readme changes

This commit is contained in:
Ishaan Jaff 2023-07-31 08:12:17 -07:00 committed by GitHub
parent 2847f9d754
commit 616ab82181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ pip install litellm==0.1.1
from litellm import completion
## set ENV variables
# ENV variables can be set in .env file, too. Example in .env.example
os.environ["OPENAI_API_KEY"] = "openai key"
os.environ["COHERE_API_KEY"] = "cohere key"
@ -38,6 +39,9 @@ response = completion("command-nightly", messages)
# azure openai call
response = completion("chatgpt-test", messages, azure=True)
# openrouter call
response = completion("google/palm-2-codechat-bison", messages)
```
# hosted version