mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-21 08:26:34 +00:00
Update README.md
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
a simple, fast, 100 line package to call OpenAI, Azure, Cohere, Anthropic API Endpoints
|
||||
|
||||
# usage
|
||||
|
||||
```python
|
||||
from litellm import completion
|
||||
|
||||
messages = [{ "content": "Hello, how are you?","role": "user"}]
|
||||
|
||||
# openai call
|
||||
response = completion(model="gpt-3.5-turbo", messages=messages)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user