From a1634f42f5b538f649970a27c4d70080b52cdbbf Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 13 Nov 2023 11:04:20 -0800 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 603751013..4352da73d 100644 --- a/README.md +++ b/README.md @@ -109,10 +109,8 @@ $ litellm --model huggingface/bigcode/starcoder ### Step 2: Replace openai base ```python -import openai - -openai.api_base = "http://0.0.0.0:8000" - +import openai +client = openai.OpenAI(api_key="anything", base_url="http://0.0.0.0:8000") print(openai.chat.completions.create(model="test", messages=[{"role":"user", "content":"Hey!"}])) ```