OrcaRouter provider support for minion
还没有人认领这个 Issue。
评估
调研方向
Start by reading the Source abstraction and _discover_sources(), then compare the existing together and openrouter integrations and their position in SOURCE_ORDER. Confirm the project wants this optional provider before implementing; done would be a tested, key-gated OrcaRouter source with a model override that does not displace the startup source.
由索引模型根据 Issue 内容生成。
描述
Minion's pitch is that the floor matters: about 625 tokens for a bare hey, against the 20K–50K other harnesses spend before you have said anything — and that floor is paid on every single turn. For someone running a self-hosted model, that is the difference between an agent that fits the context window they actually have and one that does not.
What makes it hold up in practice is the degradation path. When a server cannot do native tool-calling, minion parses [minion_tool_call] blocks out of the model's text, escapes those delimiters before tool results re-enter context, and renders a separate reasoning_content stream as a dim thinking block. Demanding a perfect server would exclude exactly the open models minion exists to serve.
Proposal: OrcaRouter as an optional source
I'm an engineer on the OrcaRouter team, and I would like to propose OrcaRouter as an optional source for minion. It would not replace or change any existing provider — the local llama.cpp / vLLM / SGLang default, zai, together, and openrouter all stay as they are, and OrcaRouter would be opt-in behind its own key.
OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication, so it lines up with the abstraction minion already has. Source takes a base URL, an API key, and a model id, and _discover_sources() already auto-registers key-gated aggregator sources (together, openrouter) at the end of SOURCE_ORDER so they never displace the startup source. An OrcaRouter entry would follow that same shape. To be clear, this is a proposal, not code that exists or has been tested.
Where it would help minion users
- One endpoint, many models. Chat, reasoning, image, and video models behind a single OpenAI-compatible base URL, so
/source orcarouter <model>gives a multi-model host the per-switch model overridetogetherandopenrouteralready support. - Automatic model routing and provider failover. This matters most for remote sources: one upstream going down should not end a turn mid-task.
- Usage tracking and budgets. Complements the per-call token accounting minion already persists in the session JSON and can push to
MINION_METRICS_URL. - Team access controls, for the self-hosted crowd sharing one gateway.
Ecosystem and disclosure
OrcaRouter is already appearing in open-source projects including goose, promptfoo, Dify, and RAGFlow, so there is a working integration pattern to follow.
Full transparency: OrcaRouter runs an optional open-source partner program in which approved projects can receive a 5% revenue share on OrcaRouter usage attributed to their integration. Participation is not a prerequisite for the integration — I am glad to follow whatever disclosure or governance rules you prefer.
I would welcome your thoughts on whether this fits minion's direction. If you are open to it, I would be happy to put together the implementation PR. More on the program at https://www.orcarouter.ai/built-with.
- 主要语言
- Python
- 星标
- 336
- 派生
- 42
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Sentdex/minion 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
-
utilizing concurrency可能重新可做 @Sentdex 于 114 天前认领,目前没有进行中的 PR。 未关闭enhancement
相似的 Issue
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog check可能已有人在做 @ocelotl 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
open-telemetry/opentelemetry-python#5825 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cuga-project/cuga-agent#1020 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
microsoft/playwright#43640 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
维护者通常 2 天内回复
-
from-review-extraction library privacy python severity:suggested
难度 2/5 1-3 小时 新手友好度 83/100
LearningCircuit/local-deep-research#7951 ·
维护者通常 2 天内回复