forked from phoenix/litellm-mirror
open router docs
This commit is contained in:
parent
a8711dc5c2
commit
b7f97ca012
1 changed files with 9 additions and 4 deletions
|
@ -1,11 +1,16 @@
|
|||
# OpenRouter
|
||||
LiteLLM supports all the text models from [OpenRouter](https://openrouter.ai/docs)
|
||||
|
||||
### API KEYS
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import os
|
||||
os.environ["OPENROUTER_API_KEYS"] = ""
|
||||
import os
|
||||
from litellm import completion
|
||||
os.environ["OPENROUTER_API_KEY"] = ""
|
||||
|
||||
response = completion(
|
||||
model="google/palm-2-chat-bison",
|
||||
messages=messages,
|
||||
)
|
||||
```
|
||||
|
||||
### OpenRouter Completion Models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue