From c4403e2ff4121a7e0859e9dbe32adbce351616a7 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Fri, 22 Aug 2025 10:38:18 -0700 Subject: [PATCH] fix: revert capabilities format to array syntax in OpenRouter docs --- .../model-providers/more/openrouter.mdx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/customize/model-providers/more/openrouter.mdx b/docs/customize/model-providers/more/openrouter.mdx index 4659f1574..071248203 100644 --- a/docs/customize/model-providers/more/openrouter.mdx +++ b/docs/customize/model-providers/more/openrouter.mdx @@ -108,9 +108,16 @@ Learn more about available settings [here](https://openrouter.ai/docs). ## Model Capabilities -Continue automatically determines whether a model supports native tool calling. You can see the full list of supported models [here](https://github.com/continuedev/continue/blob/main/core/src/llm/toolSupport.ts). +OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the original model's function calling support. -If you're experiencing issues with Agent mode or tools not working, you can add the `capabilities` field to override the default behavior: + + Continue automatically uses system message tools for models that don't support + native function calling, so Agent mode should work even without explicit + capability configuration. However, you can still override capabilities if + needed. + + +If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field: @@ -122,8 +129,8 @@ If you're experiencing issues with Agent mode or tools not working, you can add apiBase: https://openrouter.ai/api/v1 apiKey: capabilities: - tools: true # Enable function calling for Agent mode - image_input: true # Enable image upload support + - tool_use # Enable function calling for Agent mode + - image_input # Enable image upload support ``` @@ -147,10 +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. - -## System Message Tools - -For models that do not support native tool calling, Continue will automatically use "system message tools". This means that the tool definitions and calls are embedded in the system message as text. This allows you to use tools with models that don't natively support them. - -This feature is enabled by default for all OpenRouter models except for Claude models, which have good native tool calling support. \ No newline at end of file +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