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
|
# OpenRouter
|
||||||
LiteLLM supports all the text models from [OpenRouter](https://openrouter.ai/docs)
|
LiteLLM supports all the text models from [OpenRouter](https://openrouter.ai/docs)
|
||||||
|
|
||||||
### API KEYS
|
## Usage
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import os
|
import os
|
||||||
os.environ["OPENROUTER_API_KEYS"] = ""
|
from litellm import completion
|
||||||
|
os.environ["OPENROUTER_API_KEY"] = ""
|
||||||
|
|
||||||
|
response = completion(
|
||||||
|
model="google/palm-2-chat-bison",
|
||||||
|
messages=messages,
|
||||||
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
### OpenRouter Completion Models
|
### OpenRouter Completion Models
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue