Merge pull request #7333 from continuedev/bdougie/con-3096
docs: better openrouter info
This commit is contained in:
commit
795e247e5f
1 changed files with 34 additions and 2 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Reference in a new issue