From 3e9967b61481d00e4fb923f28374d690eb495f08 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 8 Aug 2023 14:49:42 -0700 Subject: [PATCH] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bcb0608f6..8df5f3dde 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,6 @@ pip install litellm ```python 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" - messages = [{ "content": "Hello, how are you?","role": "user"}] # openai call @@ -41,6 +36,9 @@ response = completion("command-nightly", messages) # azure openai call response = completion("chatgpt-test", messages, azure=True) +# hugging face call +response = completion(model="stabilityai/stablecode-completion-alpha-3b-4k", messages=messages, hugging_face=True) + # openrouter call response = completion("google/palm-2-codechat-bison", messages) ```