feat: add OrcaRouter as an LLM provider - #39
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
Conversation
Add a named OrcaRouter provider preset (OpenAI-compatible routing gateway) mirroring the existing OpenRouter entry: base_url, default model, API key field, env var mapping, config example, README/docs, and unit tests.
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
This registers OrcaRouter the same way the existing OpenRouter and Atlas Cloud providers are wired, so the config reference and docs stay consistent. OrcaRouter is an OpenAI-compatible gateway: one
ORCAROUTER_API_KEY(keys start withsk-orca-) unlocks 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax and xAI behind a singlehttps://api.orcarouter.ai/v1endpoint. 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.I'm an engineer on the OrcaRouter team.
What this changes
src/standard/llm_client.py: registers theorcarouterprovider inPROVIDER_DEFAULTS(base URLhttps://api.orcarouter.ai/v1, default modeldeepseek/deepseek-chat, config keyorcarouter_api_key), with anORCAROUTER_API_KEYenv fallbackconfig/config.example.toml: addsorcarouter_api_keyand updates the provider commentREADME.md/README-zh.md: adds an OrcaRouter config block alongside the existing providersdocs/configuration.md: adds an OrcaRouter section, provider-defaults table row, and env-var rowdocs/api-reference.md/docs/pipeline.md: documents the new provider and default modeltests/test_llm_client.py: addstest_orcarouter_providerandtest_orcarouter_env_keyHow to use it
sk-orca-).orcarouter_api_keyinconfig/config.toml, orORCAROUTER_API_KEYas an env var.[llm] provider = "orcarouter"(the default model isdeepseek/deepseek-chat; any OrcaRouter model slug works).Validation
pytest tests/ -q-> 28 passed (includes the 2 new OrcaRouter tests)python -m py_compileon the changed Python files +git diff --checkcleanresolve_llm_config+chat_completionspath: default model 200,orcarouter/auto200, invalid key 401deepseek/deepseek-chatis present in the live OrcaRouter model catalogREADME/docs updates are limited to existing technical provider configuration sections; no sponsor/logo/credits/partner content was added.