feat: add OrcaRouter third-party format - #1316
Open
sailt-k wants to merge 1 commit into
Open
Conversation
|
hi, is it possible for workflow review and approval? |
Member
|
Hi there, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds OrcaRouter (https://www.orcarouter.ai), an OpenAI-compatible LLM gateway, as a named
third-party format — same pattern as
lm-studio/arli. Selecting the "OrcaRouter" formatdefaults to the OrcaRouter API endpoint, so users only need to provide their API key.
Changes
common/adapters.ts: registerorcarouterinTHIRDPARTY_FORMATS,THIRDPARTY_HANDLERS(→openai), andFORMAT_LABEL.srv/adapter/openai.ts: treatorcarouteras a chat format (chat/completions).common/requests/util.ts: default the base URL tohttps://api.orcarouter.ai/v1for theorcarouterformat (overridable with a custom URL).web/pages/Settings/Provider/index.tsx: add "OrcaRouter" to the format dropdown.Verification
Tested live against OrcaRouter's API (e.g.
anthropic/claude-opus-4.8): chat completionssucceed with the handler's payload.
I'm an engineer on the OrcaRouter team.