feat(providers): add OrcaRouter as a named gateway provider

Registers OrcaRouter (https://www.orcarouter.ai) as a built-in OpenAI-compatible gateway provider mirroring the OpenRouter wiring: registry spec (sk-orca- key prefix, default base URL), ProvidersConfig field, WebUI icon/brand + deferred model list, docs, and tests.
This commit is contained in:
XiaoHuo888
2026-08-16 00:26:51 +08:00
committed by Xubin Ren
parent 50391b2fb7
commit fd2d419956
7 changed files with 152 additions and 0 deletions
+12
View File
@@ -199,6 +199,18 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
supports_prompt_caching=True,
gateway_reasoning_style="reasoning_effort",
),
# OrcaRouter: global gateway, keys start with "sk-orca-"
ProviderSpec(
name="orcarouter",
keywords=("orcarouter",),
env_key="ORCAROUTER_API_KEY",
display_name="OrcaRouter",
backend="openai_compat",
is_gateway=True,
detect_by_key_prefix="sk-orca-",
detect_by_base_keyword="orcarouter",
default_api_base="https://api.orcarouter.ai/v1",
),
# Eden AI: OpenAI-compatible gateway. Models use the "provider/model"
# naming scheme (e.g. "anthropic/claude-sonnet-4-5"); the full id is sent upstream.
ProviderSpec(