Merge pull request #7333 from continuedev/bdougie/con-3096

docs: better openrouter info
This commit is contained in:
Dallin Romney 2025-08-27 10:45:04 -07:00 • committed by GitHub
commit 795e247e5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ description: "Configure OpenRouter with Continue to access various commercial an
OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
Change `~/.continue/config.json` to look like the following.
Change `~/.continue/config.yaml` to look like the following.
<Tabs>
<Tab title="YAML">
@ -36,6 +36,38 @@ Change `~/.continue/config.json` to look like the following.
</Tab>
</Tabs>
## Using Custom Models
To use a model that is not in the dropdown list, you can simply enter the model name in the `model` field. For example, to use Qwen3Coder, you would update your configuration to look like this:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen3Coder
provider: openrouter
model: qwen/qwen-coder
apiBase: https://openrouter.ai/api/v1
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "Qwen3Coder",
"provider": "openrouter",
"model": "qwen/qwen-coder",
"apiBase": "https://openrouter.ai/api/v1",
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
@ -122,4 +154,4 @@ If you're experiencing issues with Agent mode or tools not working, you can add
</Tab>
</Tabs>
Note: Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities.
Note: Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities.