open router docs

This commit is contained in:
ishaan-jaff 2023-09-20 20:59:32 -07:00
parent a8711dc5c2
commit b7f97ca012

View file

@ -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