Skip to content

Commit b9fb3eb

Browse files
authored
Merge pull request #994 from NanmiCoder/teamorouter-sponsor
feat(provider): 新增 TeamoRouter 供应商并加入 README 赞助商
2 parents a94e1a1 + 4eb6b2f commit b9fb3eb

5 files changed

Lines changed: 72 additions & 11 deletions

File tree

‎README.en.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ This project is maintained in the author's spare time. Corporate or individual s
140140
Thanks to <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">ShengSuanYun</a> for sponsoring this project. ShengSuanYun is an industrial-grade AI task parallel execution platform for AI Native Teams, aggregating Claude, ChatGPT, Gemini, and other LLM, image, and video model capacity through direct, non-reverse-engineered access. Its platform SLA reaches 99.7%, with <a href="https://watch.shengsuanyun.com/status/shengsuanyun">service status</a> available online. It also supports dedicated enterprise gateways, cost and permission controls, smart routing, security protection, BYOK, usage-based billing, upcoming tokens plans, and invoicing. New users registering through <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">this link</a> can receive 10 yuan in model credits plus a 10% first top-up bonus.
141141
</td>
142142
</tr>
143+
<tr>
144+
<td align="center" valign="middle">
145+
<a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">
146+
<img src="docs/images/sponsors/teamorouter-logo.svg" width="180" alt="TeamoRouter">
147+
</a>
148+
</td>
149+
<td valign="middle">
150+
Thanks to <a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">TeamoRouter</a> for sponsoring this project. TeamoRouter is an enterprise-grade Agentic LLM gateway for developers, AI teams, and businesses. Without any subscription, it lets you use Claude Code, Codex, Gemini CLI, and other popular AI agents through a single unified API, with API pricing at discounts of up to 90%. It aggregates hundreds of official model providers and trusted infrastructure partners — including OpenAI, Anthropic, Vertex, Azure, and AWS Bedrock — each verified for 100% Agent protocol compatibility, cache performance, and request traceability, delivering near-official TTFT, a 99.6% SLA, throughput up to 5,000 QPM, and industry-leading cache hit rates rather than reverse-engineered endpoints. It also offers centralized billing, team management, BYOK, smart routing, usage analytics, and dedicated support, and Teamo Desktop lets you use these AI agents with one-click setup. New users who register through <a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">this link</a> receive 10% off their first top-up.
151+
</td>
152+
</tr>
143153
</tbody>
144154
</table>
145155

‎README.md‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ cp .env.example .env
140140
感谢 <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">胜算云</a> 赞助本项目!胜算云是面向 AI Native Teams 的工业级 AI 任务并行执行平台,聚合 Claude、ChatGPT、Gemini 等海内外 LLM 及图片、视频多媒体模型算力;官方直连、非逆向,平台 SLA 可用性达 99.7%,可查看 <a href="https://watch.shengsuanyun.com/status/shengsuanyun">服务状态</a>。平台支持企业专属网关、成本与权限管控、智能路由、安全防护和 BYOK,按量与 tokens plan(即将上线)计费并可开票;使用 <a href="https://www.shengsuanyun.com/?from=CH_LEJ88KWR">专属链接</a> 注册可获 10 元模力及首充 10% 赠送。
141141
</td>
142142
</tr>
143+
<tr>
144+
<td align="center" valign="middle">
145+
<a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">
146+
<img src="docs/images/sponsors/teamorouter-logo.svg" width="180" alt="TeamoRouter">
147+
</a>
148+
</td>
149+
<td valign="middle">
150+
感谢 <a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">TeamoRouter</a> 赞助本项目!TeamoRouter 是面向开发者、AI 团队与企业的企业级 Agentic LLM 网关,无需任何订阅即可通过统一 API 使用 Claude Code、Codex、Gemini CLI 等热门 AI Agent,API 价格最高可享 90% 折扣。平台聚合 OpenAI、Anthropic、Vertex、Azure、AWS Bedrock 等数百家官方模型提供商与可信基础设施,全部经过 100% Agent 协议兼容、缓存性能与请求可追踪性验证,官方直连、非逆向,提供接近官方的 TTFT、99.6% SLA、最高 5,000 QPM 吞吐与行业领先的缓存命中率;同时支持集中账单、团队管理、BYOK、智能路由、用量分析与专属支持,并可通过 Teamo Desktop 一键使用各类 AI Agent。新用户通过 <a href="https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory">专属链接</a> 注册,首次充值可享 10% 折扣。
151+
</td>
152+
</tr>
143153
</tbody>
144154
</table>
145155

@@ -193,19 +203,8 @@ cp .env.example .env
193203
- [Electron](https://github.com/electron/electron):跨端桌面应用能力与工程实践。
194204
- [cc-switch](https://github.com/farion1231/cc-switch):模型供应商配置能力参考。
195205

196-
---
197-
198-
## ⭐ Star 趋势图
199206

200-
如果这个项目对您有帮助,请给个 ⭐ Star 支持一下,让更多的人看到 Claude Code Haha!
201207

202-
<a href="https://www.star-history.com/#NanmiCoder/cc-haha&Date">
203-
<picture>
204-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date&theme=dark" />
205-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
206-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=NanmiCoder/cc-haha&type=Date" />
207-
</picture>
208-
</a>
209208

210209
---
211210

Lines changed: 4 additions & 0 deletions
Loading

‎src/server/__tests__/provider-presets.test.ts‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('provider presets API', () => {
6969
const minimax = PROVIDER_PRESETS.find((preset) => preset.id === 'minimax')
7070
const jiekouai = PROVIDER_PRESETS.find((preset) => preset.id === 'jiekouai')
7171
const shengsuanyun = PROVIDER_PRESETS.find((preset) => preset.id === 'shengsuanyun')
72+
const teamorouter = PROVIDER_PRESETS.find((preset) => preset.id === 'teamorouter')
7273

7374
expect(lmstudio?.baseUrl).toBe('http://localhost:1234')
7475
expect(lmstudio?.apiFormat).toBe('anthropic')
@@ -114,6 +115,14 @@ describe('provider presets API', () => {
114115
expect(shengsuanyun?.defaultModels.main).toBe('anthropic/claude-sonnet-4.6')
115116
expect(shengsuanyun?.defaultModels.haiku).toBe('anthropic/claude-haiku-4.5:thinking')
116117
expect(shengsuanyun?.modelContextWindows?.['anthropic/claude-sonnet-4.6']).toBe(1000000)
118+
expect(teamorouter?.baseUrl).toBe('https://api.teamorouter.com')
119+
expect(teamorouter?.apiFormat).toBe('anthropic')
120+
expect(teamorouter?.authStrategy).toBe('auth_token')
121+
expect(teamorouter?.defaultModels.main).toBe('claude-opus-4-8')
122+
expect(teamorouter?.defaultModels.haiku).toBe('claude-haiku-4-5')
123+
expect(teamorouter?.defaultModels.sonnet).toBe('claude-sonnet-5')
124+
expect(teamorouter?.defaultModels.opus).toBe('claude-opus-4-8')
125+
expect(teamorouter?.modelContextWindows?.['claude-opus-4-8']).toBe(1000000)
117126
})
118127

119128
test('configured presets can expose optional API key and promo metadata', () => {
@@ -125,6 +134,7 @@ describe('provider presets API', () => {
125134
const minimax = PROVIDER_PRESETS.find((preset) => preset.id === 'minimax')
126135
const jiekouai = PROVIDER_PRESETS.find((preset) => preset.id === 'jiekouai')
127136
const shengsuanyun = PROVIDER_PRESETS.find((preset) => preset.id === 'shengsuanyun')
137+
const teamorouter = PROVIDER_PRESETS.find((preset) => preset.id === 'teamorouter')
128138
const custom = PROVIDER_PRESETS.find((preset) => preset.id === 'custom')
129139

130140
expect(lmstudio?.needsApiKey).toBe(false)
@@ -166,6 +176,16 @@ describe('provider presets API', () => {
166176
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES: 'none',
167177
})
168178
expect(shengsuanyun?.modelContextWindows?.['anthropic/claude-opus-4.7']).toBe(1000000)
179+
expect(teamorouter?.apiKeyUrl).toBe(
180+
'https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory',
181+
)
182+
expect(teamorouter?.promoText).toContain('10% 折扣')
183+
expect(teamorouter?.featured).toBe(true)
184+
expect(teamorouter?.defaultEnv).toEqual({
185+
CLAUDE_CODE_SUBAGENT_MODEL: 'claude-sonnet-5',
186+
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES: 'none',
187+
})
188+
expect(teamorouter?.modelContextWindows?.['claude-sonnet-5']).toBe(1000000)
169189
expect(custom?.promoText).toBeUndefined()
170190
expect(custom?.authStrategy).toBe('auth_token')
171191
expect(custom?.defaultEnv).toBeUndefined()

‎src/server/config/providerPresets.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,34 @@
180180
"anthropic/claude-opus-4.7": 1000000
181181
}
182182
},
183+
{
184+
"id": "teamorouter",
185+
"name": "TeamoRouter",
186+
"baseUrl": "https://api.teamorouter.com",
187+
"apiFormat": "anthropic",
188+
"defaultModels": {
189+
"main": "claude-opus-4-8",
190+
"haiku": "claude-haiku-4-5",
191+
"sonnet": "claude-sonnet-5",
192+
"opus": "claude-opus-4-8"
193+
},
194+
"needsApiKey": true,
195+
"websiteUrl": "https://teamorouter.com",
196+
"apiKeyUrl": "https://teamorouter.com/?utm_source=cc_haha&utm_medium=referral&utm_campaign=ai_directory",
197+
"promoText": "TeamoRouter 为 cc-haha 的用户提供了专属福利,通过此链接注册的新用户首次充值可享 10% 折扣!",
198+
"featured": true,
199+
"authStrategy": "auth_token",
200+
"defaultEnv": {
201+
"CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-5",
202+
"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES": "none"
203+
},
204+
"modelContextWindows": {
205+
"claude-opus-4-8": 1000000,
206+
"claude-sonnet-5": 1000000,
207+
"claude-haiku-4-5": 200000,
208+
"claude-haiku-4-5-20251001": 200000
209+
}
210+
},
183211
{
184212
"id": "lmstudio",
185213
"name": "LM Studio",

0 commit comments

Comments
 (0)