feat(online): add OrcaRouter chat provider - #1287
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Add a named OrcaRouter online chat provider (source='orcarouter') that mirrors the existing DeepSeek/PPIO OpenAI-compatible gateway wiring. - supplier/orcarouter.py: OrcaRouterChat with base_url https://api.orcarouter.ai/v1/ and default model orcarouter/auto - map_model_type.py: register orcarouter/{auto,fusion,fusion-flash, fusion-mini} as llm - cli/run.py: add orcarouter to --source choices - docs/module.py + docs API reference: bilingual docs + usage example - tests: provider registration/defaults tests + model mapping cases Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
XiaoHuo888-hue
had a problem deploying
to
protected
August 20, 2026 23:45 — with
GitHub Actions
Failure
This branch had an error being deployed
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.
📌 PR 内容 / PR Description
Add a named OrcaRouter online chat provider to LazyLLM's
OnlineChatModule.OrcaRouter is a unified multi-model gateway that exposes an OpenAI-compatible API (
https://api.orcarouter.ai/v1/). This PR mirrors the existing DeepSeek/PPIO OpenAI-compatible gateway wiring so users can select it by name (source='orcarouter') instead of manually filling in a generic OpenAI-compatible endpoint. 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.🎯 问题背景 / Problem Context
orcarouter/auto,orcarouter/fusion,orcarouter/fusion-flash,orcarouter/fusion-mini).🔍 相关 Issue / Related Issue
lazyllm/module/llms/onlinemodule/supplier/).✅ 变更类型 / Type of Change
🧪 如何测试 / How Has This Been Tested?
python3 -m flake8on all changed files — clean.pytest tests/basic_tests/Models/test_orcarouter_provider.py tests/basic_tests/Modules/test_map_model.py— 5 passed.pytest tests/basic_tests/Models/test_online_chat_model_runtime.py— 59 passed (regression).pytest tests/doc_check/test_doc_api_check.py -k OrcaRouterChat— passed (docs registration).OnlineChatModule(source='orcarouter', model='orcarouter/auto')→https://api.orcarouter.ai/v1/chat/completions→ HTTP 200ORCA-LIVE-OK. All four gateway models (orcarouter/auto,fusion,fusion-flash,fusion-mini) returnedORCA-LIVE-OK.⚡ 更新后的用法示例 / Usage After Update
base_urlishttps://api.orcarouter.ai/v1/(trailing slash, matching the existingopenai.pyconvention sourljoinproduces/v1/chat/completions).🧠 AI 参与情况 / AI Involvement
使用工具 / Tools Used: