Update README.md

This commit is contained in:
Krish Dholakia 2023-09-29 11:20:38 -07:00 committed by GitHub
parent 17be1d89b3
commit bb50729a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,10 +44,9 @@ pip install litellm
from litellm import completion
import os
## We provide a free $10 key to try all providers supported on LiteLLM.
## set ENV variables
os.environ["OPENAI_API_KEY"] = "sk-litellm-5b46387675a944d2" # [OPTIONAL] replace with your openai key
os.environ["COHERE_API_KEY"] = "sk-litellm-5b46387675a944d2" # [OPTIONAL] replace with your cohere key
os.environ["OPENAI_API_KEY"] = "your-openai-key"
os.environ["COHERE_API_KEY"] = "your-cohere-key"
messages = [{ "content": "Hello, how are you?","role": "user"}]