feat(ai): add OrcaRouter provider - #718
Open
murongg wants to merge 1 commit into
Open
Conversation
Add a disabled built-in provider using the existing OpenAI-compatible transport, preserve saved settings during migration, and map reasoning to the gateway effort field. Closes #715
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
OrcaRouter users can now select a built-in provider, enter their API key, and use inline AI or the side panel through the existing OpenAI-compatible transport. The entry is disabled by default, includes OrcaRouter Auto plus three explicit model choices, supports model discovery, and uses the official provider icon.
Existing settings gain the missing entry while retaining saved providers, credentials, custom models, and default selections. Explicit thinking requests use the gateway's documented
reasoning_effortfield before upstream-specific model heuristics. When thinking is off or unspecified, the gateway's default applies because its documentation does not define a portable off value.Closes #715.
Validation
pnpm --filter @markra/providers test: 46 tests passed.pnpm --filter @markra/ai test: 260 tests passed, including compatible request shaping and streamed text, reasoning, and tool arguments.pnpm --filter @markra/app test: 1,556 tests passed.pnpm --filter @markra/providers --filter @markra/ai --filter @markra/app typecheck:test: passed.pnpm build: passed across the workspace, including desktop and web builds.git diff --check: passed./v1/modelsendpoint returned 194 models; checked the three explicit seed IDs against it. Auto is an account-scoped router documented separately.Authenticated inference has not been tested because no OrcaRouter API key was available. Routing policies, failover configuration, and spending controls remain managed by OrcaRouter.
References