forked from phoenix/litellm-mirror
Update README.md
This commit is contained in:
parent
e125414611
commit
a1634f42f5
1 changed files with 2 additions and 4 deletions
|
@ -109,10 +109,8 @@ $ litellm --model huggingface/bigcode/starcoder
|
||||||
|
|
||||||
### Step 2: Replace openai base
|
### Step 2: Replace openai base
|
||||||
```python
|
```python
|
||||||
import openai
|
import openai
|
||||||
|
client = openai.OpenAI(api_key="anything", base_url="http://0.0.0.0:8000")
|
||||||
openai.api_base = "http://0.0.0.0:8000"
|
|
||||||
|
|
||||||
print(openai.chat.completions.create(model="test", messages=[{"role":"user", "content":"Hey!"}]))
|
print(openai.chat.completions.create(model="test", messages=[{"role":"user", "content":"Hey!"}]))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue