forked from phoenix/litellm-mirror
add PR #14 readme changes
This commit is contained in:
parent
2847f9d754
commit
616ab82181
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue