feat: add OrcaRouter as a named model provider - #1684
Conversation
|
@Marc-oss-hub is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
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 ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
What
Adds OrcaRouter as a first-class, named model provider in SurfSense, mirroring the existing OpenRouter/Requesty integration pattern.
OrcaRouter is an OpenAI-compatible model gateway that lets you reach models from many providers through one key (e.g.
openai/gpt-5.5,anthropic/claude-sonnet-5). It also provides gateway-level security controls for AI agents.Changes
surfsense_backend/app/services/provider_registry.py— registerorcarouteras an OpenAI-compatible provider with discovery (openai_models), base URLhttps://api.orcarouter.ai/v1, and bearer auth, matching the existingrequesty/openrouterentries.surfsense_web/components/icons/providers/orcarouter.svg— new provider icon.surfsense_web/components/icons/providers/index.ts— export the new icon.surfsense_web/lib/provider-icons.tsx— render the icon forORCAROUTERconnections.surfsense_web/components/settings/model-connections/provider-metadata.tsx— addorcarouterto the provider order/display metadata.surfsense_web/components/settings/model-connections/default-connect-form.tsx— show the base-URL hint for OrcaRouter connections.Verification
GET https://api.orcarouter.ai/v1/modelswith ansk-orca-key returns200and a model list that includes namespaced slugs likeopenai/gpt-5.5,orcarouter/free, andorcarouter/fusion.OPENAI_COMPATIBLEtransport +OPENAI_BASE_URL-style base URL, so no backend routing changes are needed.I'm an engineer on the OrcaRouter team.
High-level PR Summary
This PR adds OrcaRouter as a named model provider in SurfSense, following the same integration pattern as existing OpenAI-compatible gateways like OpenRouter and Requesty. The changes register OrcaRouter in the backend provider registry with its API endpoint (
https://api.orcarouter.ai/v1), add the provider icon and UI metadata for display in the settings interface, and include the base URL hint for connection configuration.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_backend/app/services/provider_registry.pysurfsense_web/components/icons/providers/orcarouter.svgsurfsense_web/components/icons/providers/index.tssurfsense_web/lib/provider-icons.tsxsurfsense_web/components/settings/model-connections/provider-metadata.tsxsurfsense_web/components/settings/model-connections/default-connect-form.tsx