Feat(openrouter): Adds OpenRouter API support#1425
Feat(openrouter): Adds OpenRouter API support#1425denrusio wants to merge 2 commits intounclecode:developfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
It would be way better if we can give the model name instead |
Summary
This PR adds support for OpenRouter API, enabling access to 400+ AI models through a single unified API endpoint.
Changes
PROVIDER_MODELSdictionary with latest August 2025 modelsopenrouterprefix toPROVIDER_MODELS_PREFIXESfor automatic API key handlingOPENROUTER_API_KEYto.env.txtexample fileUsage
Users can now use OpenRouter models by:
OPENROUTER_API_KEYenvironment variableopenrouter/vendor/model-nameExample: