feat: add OrcaRouter as a named OpenAI-compatible provider - #411
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat: add OrcaRouter as a named OpenAI-compatible provider#411XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Add an orcarouter entry to providers.json, mirroring the existing gemini/anthropic config entries. OrcaRouter is an OpenAI-compatible chat gateway at https://api.orcarouter.ai/v1, so it works through the same OpenAICompatibleProvider with zero Python changes. - providers.json: orcarouter provider (base_url, ORCAROUTER_API_KEY, json_object structured output) with the orcarouter/auto, fusion, fusion-flash, and fusion-mini gateway models - .env.example: ORCAROUTER_API_KEY - README.md: document the OrcaRouter backend under Provider details Verified live with a real key through initialize_llm_provider(): orcarouter/auto returns parseable JSON with the repo's json_object response_format translation. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
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.
What
Adds OrcaRouter as a named OpenAI-compatible provider in
providers.json, mirroring the existinggemini/anthropicconfig entries. Since the repo's provider layer is config-driven (oneOpenAICompatibleProviderpointed at a configurablebase_url), this is a pure configuration + docs change — zero Python edits.Changes
providers.json— neworcarouterprovider:base_url:https://api.orcarouter.ai/v1api_key_env:ORCAROUTER_API_KEYstructured_output:json_object(verified against the live API)orcarouter/auto(smart routing),orcarouter/fusion,orcarouter/fusion-flash,orcarouter/fusion-mini.env.example— documentORCAROUTER_API_KEYand theorcarouter/*model examples.README.md— document OrcaRouter under Provider details and in the env-var table.It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.
Verification
providers.jsonparses;config.py/llm_utils.py/models.pycompile clean.initialize_llm_provider("orcarouter/auto")→OpenAICompatibleProvider.chat()): all fourorcarouter/*models resolve, andorcarouter/autoreturns parseable JSON via the repo'sjson_objectresponse_formattranslation.orcarouter/auto,orcarouter/fusion,orcarouter/fusion-flash,orcarouter/fusion-miniall return HTTP 200 with valid JSON.Disclosure: I'm an engineer on the OrcaRouter team.