OpenRouter allows you configure provider preferences, model routing configuration, and more. You can set these via requestOptions.For example, to prevent extra long prompts from being compressed, you can explicitly turn off Transforms:)
OpenRouter models may require explicit capability configuration because the proxy doesn’t always preserve the function calling support of the original model.
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: