登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
【大赛通知】开源中国「2026上海开源软件应用创新大赛」火热报名中,百万奖池等你的项目
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
AI-人工智能
&&
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
2
Star
18
Fork
6
AIDotNet
/
Thor
代码
Issues
0
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
1
Add OrcaRouter as a named provider platform
开启的
orcadev:main
AIDotNet:main
orcadev
创建于 2026-08-15 22:11
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
[OrcaRouter](https://www.orcarouter.ai) is an OpenAI-compatible LLM routing gateway. This PR adds OrcaRouter as a named provider, mirroring the existing DeepSeek integration. 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. ### Changes - **New extension `src/extensions/Thor.OrcaRouter/`**: a named OrcaRouter platform (`PlatformCode = "OrcaRouter"`), mirroring the DeepSeek extension structure: - `OrcaRouterPlatformOptions.cs` — platform name/code - `Chats/OrcaRouterChatCompletionsService.cs` — OpenAI-compatible chat completions (non-stream + SSE stream) defaulting to `https://api.orcarouter.ai` - `Extensions/OrcaRouterServiceCollectionExtensions.cs` — registers the platform in `ThorGlobal.PlatformNames` / `ModelNames`, keyed chat service, and HTTP client - `Thor.OrcaRouter.csproj` - **`src/Thor.Service/Program.cs`** — registers `.AddOrcaRouterService()` - **`src/Thor.Service/Thor.Service.csproj`** — project reference to the new extension - **`Thor.sln`** — solution entry + build configurations - **`README.md` / `README.zh-cn.md`** — added OrcaRouter to the supported OpenAI-compatible models list The platform appears automatically in the channel-creation UI (types/models are loaded from `ThorGlobal`), so users can select OrcaRouter by name. ### Verification - `dotnet build Thor.sln` — succeeded, 0 errors (restored from nuget.org; only pre-existing NU1902/NU1903 package-vulnerability warnings remain, which are unrelated to this change) - L3 live test against the new provider path (POST `https://api.orcarouter.ai/v1/chat/completions` with a model from the default list): - non-stream: `HTTP 200`, returned `content: OK` - stream: SSE `chat.completion.chunk` deltas returned normally Disclosure: I'm an engineer on the OrcaRouter team.
此 Pull Request 需要通过一些审核项
类型
指派人员
状态
审查
Token
进行中
(0/1人)
测试
Token
进行中
(0/1人)
此 Pull Request 暂不能合并,一些审核尚未通过
怎样手动合并此 Pull Request
git checkout main
git pull https://gitee.com/orcadev/Thor.git main
git push origin main
评论
0
提交
1
文件
9
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
Token
hejiale010426
未设置
最少人数
1
测试
Token
hejiale010426
未设置
最少人数
1
优先级
不指定
严重
主要
次要
不重要
标签
标签管理
未设置
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
合并选项
合并后删除提交分支
提交分支为默认分支,无法删除
合并后关闭提到的 Issue
接受 Pull Request 时使用扁平化(Squash)合并
勾选此选项后,将建议使用 Squash Merge 方式合并以精简提交历史记录
参与者
(1)
1
https://gitee.com/AIDotNet/Thor.git
git@gitee.com:AIDotNet/Thor.git
AIDotNet
Thor
Thor
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册