Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/__tests__/provider-presets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('provider presets API', () => {
expect(kimi?.defaultEnv?.CC_HAHA_SEND_DISABLED_THINKING).toBe('1')
expect(minimax?.authStrategy).toBe('auth_token')
expect(minimax?.defaultModels.main).toBe('MiniMax-M3')
expect(minimax?.modelContextWindows?.['MiniMax-M3']).toBe(204800)
expect(minimax?.modelContextWindows?.['MiniMax-M3']).toBe(1000000)
expect(jiekouai?.baseUrl).toBe('https://api.jiekou.ai/anthropic')
expect(jiekouai?.authStrategy).toBe('auth_token')
expect(jiekouai?.defaultModels.main).toBe('claude-sonnet-4-6')
Expand Down
4 changes: 2 additions & 2 deletions src/server/__tests__/providers-real.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Real Provider Configs', () => {
expect((settings.env as Record<string, string>).ANTHROPIC_API_KEY).toBe('')
expect((settings.env as Record<string, string>).ANTHROPIC_MODEL).toBe('MiniMax-M3')
expect(JSON.parse((settings.env as Record<string, string>).CLAUDE_CODE_MODEL_CONTEXT_WINDOWS)).toMatchObject({
'MiniMax-M3': 204800,
'MiniMax-M3': 1000000,
'MiniMax-M2.7': 204800,
'MiniMax-M2.7-highspeed': 204800,
})
Expand Down Expand Up @@ -108,7 +108,7 @@ describe('Real Provider Configs', () => {
let settings = await readCcHahaSettings()
expect((settings.env as Record<string, string>).ANTHROPIC_BASE_URL).toBe('https://api.minimaxi.com/anthropic')
expect(JSON.parse((settings.env as Record<string, string>).CLAUDE_CODE_MODEL_CONTEXT_WINDOWS)).toMatchObject({
'MiniMax-M3': 204800,
'MiniMax-M3': 1000000,
'MiniMax-M2.7': 204800,
'MiniMax-M2.7-highspeed': 204800,
})
Expand Down
2 changes: 1 addition & 1 deletion src/server/config/providerPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"apiKeyUrl": "https://platform.minimaxi.com/subscribe/token-plan?code=1TG2Cseab2&source=link",
"authStrategy": "auth_token",
"modelContextWindows": {
"MiniMax-M3": 204800,
"MiniMax-M3": 1000000,
"MiniMax-M2.7": 204800,
"MiniMax-M2.7-highspeed": 204800
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/model/modelContextWindows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const DIRECT_MODEL_CONTEXT_WINDOWS: Record<string, number> = {
'kimi-k2-turbo-preview': 262_144,
'kimi-k2-thinking': 262_144,
'kimi-k2-thinking-turbo': 262_144,
'minimax-m3': 204_800,
'minimax-m3': 1_000_000,
'minimax-m2.7': 204_800,
'minimax-m2.7-highspeed': 204_800,
'glm-5.1': 200_000,
Expand Down
Loading