diff --git a/docs/customize/model-providers/more/openrouter.mdx b/docs/customize/model-providers/more/openrouter.mdx index a6369364c..4bc5945a8 100644 --- a/docs/customize/model-providers/more/openrouter.mdx +++ b/docs/customize/model-providers/more/openrouter.mdx @@ -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. @@ -36,6 +36,38 @@ Change `~/.continue/config.json` to look like the following. +## 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: + + + + ```yaml title="config.yaml" + models: + - name: Qwen3Coder + provider: openrouter + model: qwen/qwen-coder + apiBase: https://openrouter.ai/api/v1 + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Qwen3Coder", + "provider": "openrouter", + "model": "qwen/qwen-coder", + "apiBase": "https://openrouter.ai/api/v1", + "apiKey": "" + } + ] + } + ``` + + + 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 -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. \ No newline at end of file