-
Notifications
You must be signed in to change notification settings - Fork 3.5k
docs: better openrouter info #7333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AI Code ReviewAI review completed but failed to parse output No specific line comments generated. 💡 To request a new detailed review, comment |
💡 To request a new review, comment |
AI Code ReviewAI review completed but failed to parse output No specific line comments generated. 💡 To request a new detailed review, comment |
💡 To request a new review, comment |
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: | ||
For example, to route requests to a specific provider, you can use the `provider` field like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is valid config, does open router actually support this provider extra body property?
The transforms
tip is a useful openrouter-specific tip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. This was me and the model guessing. But I putting the transforms
back now.
🎉 This PR is included in version 1.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
[ What changed? Feel free to be brief. ]
Improvements for the open router docs
AI Code Review
@continue-general-review
or@continue-detailed-review
Checklist
Screen recording or screenshot
[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]
Tests
[ What tests were added or updated to ensure the changes work as expected? ]
Broken links are fixed on this PR #7339
Summary by cubic
Updates OpenRouter docs to use config.ts (TypeScript), show how to add custom models, and route requests to a specific provider via requestOptions.extraBodyProperties.provider.
Clarifies tool support (auto-detected), updates capabilities syntax to booleans (tools/image_input), and explains the system message tools fallback for models without native tool calling.