mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Update README.md
This commit is contained in:
parent
daf3554494
commit
9b7cf21de7
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ pip install litellm
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from litellm import completion
|
from litellm import completion
|
||||||
|
import os
|
||||||
|
|
||||||
|
# set API keys
|
||||||
|
os.environ['OPENAI_API_KEY'] = "<your key>"
|
||||||
|
|
||||||
messages = [{ "content": "Hello, how are you?","role": "user"}]
|
messages = [{ "content": "Hello, how are you?","role": "user"}]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue