# After connecting a provider, create your OmniRoute key in Dashboard → API Keys:curl http://localhost:20128/v1/chat/completions \
-H"Authorization: Bearer YOUR_OMNIROUTE_KEY" \
-H"Content-Type: application/json" \
-d'{"model":"auto","messages":[{"role":"user","content":"Hello!"}]}'
curl http://127.0.0.1:8012/v1/decisions -H'Content-Type: application/json' -d '{
"state": "The battery stopped charging after two weeks.",
"questions": {
"defect": {"type": "noul", "instructions": "Does the review report a product defect?"},
"severity": {"type": "choice", "instructions": "How severe is the issue?",
"criteria": {"low": "Minor", "medium": "Noticeable", "high": "The product is unusable"}}
}
}'
OmniRoute vs verdict 常见问题 (FAQ)
OmniRoute 和 verdict 在开源协议与商用合规上有什么区别?
cheaper-inference/OmniRoute 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。);PyModel/verdict 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。)。
2026 年 OmniRoute 与 verdict 哪个社区增长更快?
按 RepoForAI 实时快照,OmniRoute 总 Star 92,106(7日 +1,544),verdict 总 Star 118(7日 +118),近期增速由 OmniRoute 领先。
团队技术选型时该如何二选一?
适合选用 OmniRoute(TypeScript):为多个编程助手或内部 LLM 客户端提供统一 API,集中管理上游账号、路由策略和经过验证的备用目标;适合选用 verdict(Swift):在 Apple silicon Mac 上为工具、Agent 或可信局域网客户端提供本地 Decisions API,处理结构化文本或图像分类、打分;16 GB 机型可先选 Flash。