Update README.md

This commit is contained in:
Ishaan Jaff 2023-11-13 11:04:20 -08:00 committed by GitHub
parent e125414611
commit a1634f42f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!"}]))
```