@denizokcu/haze 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -1
- package/README.md +9 -5
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/busyIndicator.d.ts +11 -0
- package/dist/cli/chat/busyIndicator.js +34 -0
- package/dist/cli/chat/chatMetrics.d.ts +0 -1
- package/dist/cli/chat/chatMetrics.js +1 -7
- package/dist/cli/chat/followUpQueue.d.ts +11 -0
- package/dist/cli/chat/followUpQueue.js +38 -0
- package/dist/cli/chat/messages.d.ts +0 -22
- package/dist/cli/chat/messages.js +40 -85
- package/dist/cli/chat/sessionLifecycle.d.ts +3 -1
- package/dist/cli/chat/sessionLifecycle.js +6 -1
- package/dist/cli/chat/sessionRecorder.d.ts +2 -0
- package/dist/cli/chat/sessionRecorder.js +6 -0
- package/dist/cli/chat/startupSequence.d.ts +29 -0
- package/dist/cli/chat/startupSequence.js +59 -0
- package/dist/cli/chat/transcriptPartition.d.ts +23 -0
- package/dist/cli/chat/transcriptPartition.js +78 -0
- package/dist/cli/chat/wizard/fieldTransitions.d.ts +38 -0
- package/dist/cli/chat/wizard/fieldTransitions.js +43 -0
- package/dist/cli/chat/wizard/lspHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/lspHandlers.js +85 -0
- package/dist/cli/chat/wizard/mcpHandlers.d.ts +8 -0
- package/dist/cli/chat/wizard/mcpHandlers.js +82 -0
- package/dist/cli/chat/wizard/providerHandlers.d.ts +12 -0
- package/dist/cli/chat/wizard/providerHandlers.js +420 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.js +48 -0
- package/dist/cli/chat/wizard/skillsHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/skillsHandlers.js +125 -0
- package/dist/cli/chat/wizard/types.d.ts +63 -0
- package/dist/cli/chat/wizard/types.js +24 -0
- package/dist/cli/chat/wizard/uiState.d.ts +56 -0
- package/dist/cli/chat/wizard/uiState.js +15 -0
- package/dist/cli/chat/wizardDispatch.d.ts +11 -113
- package/dist/cli/chat/wizardDispatch.js +41 -815
- package/dist/cli/commands/chat.js +45 -108
- package/dist/cli/commands/formatters.d.ts +0 -3
- package/dist/cli/commands/formatters.js +0 -29
- package/dist/cli/commands/runCommand.d.ts +2 -0
- package/dist/cli/commands/runCommand.js +67 -4
- package/dist/cli/commands/streaming/assistantSegments.d.ts +19 -0
- package/dist/cli/commands/streaming/assistantSegments.js +48 -0
- package/dist/cli/commands/streaming/attemptOutcome.d.ts +2 -2
- package/dist/cli/commands/streaming/attemptOutcome.js +17 -7
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +69 -8
- package/dist/cli/commands/streaming/goalCheckpoint.js +36 -1
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +17 -2
- package/dist/cli/commands/streaming/goalSupervisor.js +62 -12
- package/dist/cli/commands/streaming/prepareStep.d.ts +35 -0
- package/dist/cli/commands/streaming/prepareStep.js +100 -0
- package/dist/cli/commands/streaming/recoverySlices.d.ts +15 -0
- package/dist/cli/commands/streaming/recoverySlices.js +29 -0
- package/dist/cli/commands/streaming/stallRecovery.d.ts +0 -1
- package/dist/cli/commands/streaming/stallRecovery.js +0 -4
- package/dist/cli/commands/streaming/streamLoop.js +9 -230
- package/dist/cli/commands/streaming/toolGroupRenderer.js +2 -1
- package/dist/cli/commands/streaming/toolPartHandlers.d.ts +19 -0
- package/dist/cli/commands/streaming/toolPartHandlers.js +95 -0
- package/dist/cli/commands/streaming.d.ts +4 -1
- package/dist/cli/commands/streaming.js +6 -21
- package/dist/cli/index.js +3 -1
- package/dist/config/providerPresets.d.ts +7 -0
- package/dist/config/providerPresets.js +195 -391
- package/dist/core/agent/completionController.d.ts +14 -7
- package/dist/core/agent/completionController.js +12 -6
- package/dist/core/agent/events.d.ts +12 -0
- package/dist/core/agent/goalPolicy.d.ts +4 -3
- package/dist/core/agent/goalPolicy.js +9 -4
- package/dist/core/agent/workState.d.ts +25 -15
- package/dist/core/agent/workState.js +71 -43
- package/dist/core/session/sessionSlimming.js +8 -0
- package/dist/core/session/sessionStore.d.ts +61 -1
- package/dist/core/session/sessionStore.js +115 -6
- package/dist/llm/hazeTools.d.ts +64 -208
- package/dist/llm/tools/taskTool.d.ts +64 -208
- package/dist/llm/tools/taskTool.js +22 -10
- package/dist/ui/components/TextInput.js +6 -67
- package/dist/ui/components/useInputSuggestions.d.ts +27 -0
- package/dist/ui/components/useInputSuggestions.js +98 -0
- package/dist/ui/theme.d.ts +8 -8
- package/dist/ui/theme.js +11 -12
- package/dist/ui/themes/registry.d.ts +5 -0
- package/dist/ui/themes/registry.js +436 -0
- package/dist/utils/format.d.ts +10 -0
- package/dist/utils/format.js +45 -0
- package/package.json +1 -1
- package/dist/ui/themes/af-magic.d.ts +0 -7
- package/dist/ui/themes/af-magic.js +0 -25
- package/dist/ui/themes/agnoster.d.ts +0 -10
- package/dist/ui/themes/agnoster.js +0 -40
- package/dist/ui/themes/bira.d.ts +0 -10
- package/dist/ui/themes/bira.js +0 -28
- package/dist/ui/themes/bureau.d.ts +0 -10
- package/dist/ui/themes/bureau.js +0 -28
- package/dist/ui/themes/clean.d.ts +0 -9
- package/dist/ui/themes/clean.js +0 -27
- package/dist/ui/themes/cloud.d.ts +0 -6
- package/dist/ui/themes/cloud.js +0 -24
- package/dist/ui/themes/dst.d.ts +0 -10
- package/dist/ui/themes/dst.js +0 -28
- package/dist/ui/themes/fishy.d.ts +0 -7
- package/dist/ui/themes/fishy.js +0 -25
- package/dist/ui/themes/index.d.ts +0 -8
- package/dist/ui/themes/index.js +0 -36
- package/dist/ui/themes/light.d.ts +0 -3
- package/dist/ui/themes/light.js +0 -21
- package/dist/ui/themes/purple.d.ts +0 -7
- package/dist/ui/themes/purple.js +0 -26
- package/dist/ui/themes/robbyrussell.d.ts +0 -8
- package/dist/ui/themes/robbyrussell.js +0 -26
- package/dist/ui/themes/solarized-dark.d.ts +0 -16
- package/dist/ui/themes/solarized-dark.js +0 -44
- package/dist/ui/themes/solarized-light.d.ts +0 -12
- package/dist/ui/themes/solarized-light.js +0 -40
- package/dist/ui/themes/steeef.d.ts +0 -11
- package/dist/ui/themes/steeef.js +0 -29
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
* Hosted presets carry a pre-configured base URL so users only need to supply an API key
|
|
7
7
|
* and model names. Local/keyless providers have sensible localhost defaults.
|
|
8
8
|
*
|
|
9
|
+
* Presets are authored in a compact definition form (`ProviderPresetDefinition`) and
|
|
10
|
+
* expanded once into the public `ProviderPreset` records: each curated model is a single
|
|
11
|
+
* `[id, contextWindowTokens, maxOutputTokens]` tuple instead of appearing twice (once in
|
|
12
|
+
* `suggestedModels`, once in `modelLimits`), and `needsApiKey` is derived from the
|
|
13
|
+
* category (cloud presets need a key unless they carry an explicit OAuth flow; local
|
|
14
|
+
* ones never do).
|
|
15
|
+
*
|
|
9
16
|
* `modelLimits` values are curated from models.dev (the same catalog pi and nanocoder
|
|
10
17
|
* consume; refreshed 2026-08-15). They are keyed by the exact suggested model id for
|
|
11
18
|
* THIS preset: aggregators may cap context below the origin model's capability (e.g.
|
|
@@ -15,460 +22,308 @@
|
|
|
15
22
|
* Local providers (Ollama/llama.cpp/MLX/LM Studio) intentionally carry no limits: their
|
|
16
23
|
* effective context depends on the local server configuration, not the model.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
const PRESET_DEFINITIONS = [
|
|
19
26
|
// ── Cloud providers (API key required) ──────────────────────────────
|
|
20
27
|
{
|
|
21
28
|
id: 'openrouter',
|
|
22
29
|
name: 'OpenRouter',
|
|
23
30
|
baseUrl: 'https://openrouter.ai/api/v1',
|
|
24
|
-
needsApiKey: true,
|
|
25
31
|
apiKeyEnvVar: 'OPENROUTER_API_KEY',
|
|
26
|
-
|
|
32
|
+
models: [
|
|
27
33
|
// SOTA
|
|
28
|
-
'anthropic/claude-opus-5',
|
|
29
|
-
'openai/gpt-5.6',
|
|
30
|
-
'google/gemini-3.7-flash',
|
|
31
|
-
'anthropic/claude-sonnet-5',
|
|
32
|
-
'qwen/qwen3.8-2.4t-a95b',
|
|
34
|
+
['anthropic/claude-opus-5', 1_048_576, 128_000],
|
|
35
|
+
['openai/gpt-5.6', 1_050_000, 128_000],
|
|
36
|
+
['google/gemini-3.7-flash', 1_048_576, 65_536],
|
|
37
|
+
['anthropic/claude-sonnet-5', 1_000_000, 128_000],
|
|
38
|
+
['qwen/qwen3.8-2.4t-a95b', 1_048_576, 262_144],
|
|
33
39
|
// Fast
|
|
34
|
-
'x-ai/grok-4.6',
|
|
35
|
-
'openai/gpt-5.4-mini',
|
|
36
|
-
'google/gemini-3.5-flash',
|
|
37
|
-
'deepseek/deepseek-v4-flash',
|
|
40
|
+
['x-ai/grok-4.6', 500_000, 500_000],
|
|
41
|
+
['openai/gpt-5.4-mini', 400_000, 128_000],
|
|
42
|
+
['google/gemini-3.5-flash', 1_048_576, 65_536],
|
|
43
|
+
['deepseek/deepseek-v4-flash', 1_048_576, 384_000],
|
|
38
44
|
],
|
|
39
|
-
modelLimits: {
|
|
40
|
-
'anthropic/claude-opus-5': { contextWindowTokens: 1_048_576, maxOutputTokens: 128_000 },
|
|
41
|
-
'openai/gpt-5.6': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
42
|
-
'google/gemini-3.7-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
43
|
-
'anthropic/claude-sonnet-5': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
44
|
-
'qwen/qwen3.8-2.4t-a95b': { contextWindowTokens: 1_048_576, maxOutputTokens: 262_144 },
|
|
45
|
-
'x-ai/grok-4.6': { contextWindowTokens: 500_000, maxOutputTokens: 500_000 },
|
|
46
|
-
'openai/gpt-5.4-mini': { contextWindowTokens: 400_000, maxOutputTokens: 128_000 },
|
|
47
|
-
'google/gemini-3.5-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
48
|
-
'deepseek/deepseek-v4-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 384_000 },
|
|
49
|
-
},
|
|
50
45
|
category: 'cloud',
|
|
51
46
|
},
|
|
52
47
|
{
|
|
53
48
|
id: 'openai-api-key',
|
|
54
49
|
name: 'OpenAI API Key',
|
|
55
50
|
baseUrl: 'https://api.openai.com/v1',
|
|
56
|
-
needsApiKey: true,
|
|
57
51
|
apiKeyEnvVar: 'OPENAI_API_KEY',
|
|
58
|
-
|
|
52
|
+
models: [
|
|
59
53
|
// SOTA
|
|
60
|
-
'gpt-5.6',
|
|
61
|
-
'gpt-5.6-sol',
|
|
62
|
-
'gpt-5.6-terra',
|
|
63
|
-
'gpt-5.5-pro',
|
|
64
|
-
'o3',
|
|
54
|
+
['gpt-5.6', 1_050_000, 128_000],
|
|
55
|
+
['gpt-5.6-sol', 1_050_000, 128_000],
|
|
56
|
+
['gpt-5.6-terra', 1_050_000, 128_000],
|
|
57
|
+
['gpt-5.5-pro', 1_050_000, 128_000],
|
|
58
|
+
['o3', 200_000, 100_000],
|
|
65
59
|
// Fast
|
|
66
|
-
'gpt-5.6-luna',
|
|
67
|
-
'gpt-5.5',
|
|
68
|
-
'gpt-5.4',
|
|
69
|
-
'gpt-5.4-mini',
|
|
60
|
+
['gpt-5.6-luna', 1_050_000, 128_000],
|
|
61
|
+
['gpt-5.5', 1_050_000, 128_000],
|
|
62
|
+
['gpt-5.4', 1_050_000, 128_000],
|
|
63
|
+
['gpt-5.4-mini', 400_000, 128_000],
|
|
70
64
|
],
|
|
71
|
-
modelLimits: {
|
|
72
|
-
'gpt-5.6': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
73
|
-
'gpt-5.6-sol': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
74
|
-
'gpt-5.6-terra': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
75
|
-
'gpt-5.6-luna': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
76
|
-
'gpt-5.5-pro': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
77
|
-
'gpt-5.5': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
78
|
-
'gpt-5.4': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
79
|
-
'gpt-5.4-mini': { contextWindowTokens: 400_000, maxOutputTokens: 128_000 },
|
|
80
|
-
'o3': { contextWindowTokens: 200_000, maxOutputTokens: 100_000 },
|
|
81
|
-
},
|
|
82
65
|
category: 'cloud',
|
|
83
66
|
},
|
|
84
67
|
{
|
|
85
68
|
id: 'google-gemini',
|
|
86
69
|
name: 'Google Gemini',
|
|
87
70
|
baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai',
|
|
88
|
-
needsApiKey: true,
|
|
89
71
|
apiKeyHint: 'API Key (from https://aistudio.google.com/apikey)',
|
|
90
72
|
apiKeyEnvVar: 'GEMINI_API_KEY',
|
|
91
|
-
|
|
73
|
+
models: [
|
|
92
74
|
// SOTA
|
|
93
|
-
'gemini-3.1-pro-preview',
|
|
94
|
-
'gemini-3.7-flash',
|
|
75
|
+
['gemini-3.1-pro-preview', 1_048_576, 65_536],
|
|
76
|
+
['gemini-3.7-flash', 1_048_576, 65_536],
|
|
95
77
|
// Fast
|
|
96
|
-
'gemini-3.6-flash',
|
|
97
|
-
'gemini-3.5-flash',
|
|
98
|
-
'gemini-3.5-flash-lite',
|
|
99
|
-
'gemini-3.1-flash-lite',
|
|
100
|
-
'gemini-2.5-pro',
|
|
78
|
+
['gemini-3.6-flash', 1_048_576, 65_536],
|
|
79
|
+
['gemini-3.5-flash', 1_048_576, 65_536],
|
|
80
|
+
['gemini-3.5-flash-lite', 1_048_576, 65_536],
|
|
81
|
+
['gemini-3.1-flash-lite', 1_048_576, 65_536],
|
|
82
|
+
['gemini-2.5-pro', 1_048_576, 65_536],
|
|
101
83
|
],
|
|
102
|
-
modelLimits: {
|
|
103
|
-
'gemini-3.1-pro-preview': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
104
|
-
'gemini-3.7-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
105
|
-
'gemini-3.6-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
106
|
-
'gemini-3.5-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
107
|
-
'gemini-3.5-flash-lite': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
108
|
-
'gemini-3.1-flash-lite': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
109
|
-
'gemini-2.5-pro': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
110
|
-
},
|
|
111
84
|
category: 'cloud',
|
|
112
85
|
},
|
|
113
86
|
{
|
|
114
87
|
id: 'mistral',
|
|
115
88
|
name: 'Mistral AI',
|
|
116
89
|
baseUrl: 'https://api.mistral.ai/v1',
|
|
117
|
-
needsApiKey: true,
|
|
118
90
|
apiKeyEnvVar: 'MISTRAL_API_KEY',
|
|
119
|
-
|
|
91
|
+
models: [
|
|
120
92
|
// SOTA
|
|
121
|
-
'mistral-large-2512',
|
|
122
|
-
'mistral-medium-2604',
|
|
93
|
+
['mistral-large-2512', 262_144, 262_144],
|
|
94
|
+
['mistral-medium-2604', 262_144, 262_144],
|
|
123
95
|
// Fast
|
|
124
|
-
'mistral-small-2603',
|
|
125
|
-
'codestral-latest',
|
|
96
|
+
['mistral-small-2603', 256_000, 256_000],
|
|
97
|
+
['codestral-latest', 256_000, 4_096],
|
|
126
98
|
],
|
|
127
|
-
modelLimits: {
|
|
128
|
-
'mistral-large-2512': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
129
|
-
'mistral-medium-2604': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
130
|
-
'mistral-small-2603': { contextWindowTokens: 256_000, maxOutputTokens: 256_000 },
|
|
131
|
-
'codestral-latest': { contextWindowTokens: 256_000, maxOutputTokens: 4_096 },
|
|
132
|
-
},
|
|
133
99
|
category: 'cloud',
|
|
134
100
|
},
|
|
135
101
|
{
|
|
136
102
|
id: 'deepseek',
|
|
137
103
|
name: 'DeepSeek',
|
|
138
104
|
baseUrl: 'https://api.deepseek.com/v1',
|
|
139
|
-
needsApiKey: true,
|
|
140
105
|
apiKeyEnvVar: 'DEEPSEEK_API_KEY',
|
|
141
|
-
|
|
106
|
+
models: [
|
|
142
107
|
// SOTA
|
|
143
|
-
'deepseek-v4-pro',
|
|
108
|
+
['deepseek-v4-pro', 1_000_000, 384_000],
|
|
144
109
|
// Fast
|
|
145
|
-
'deepseek-v4-flash',
|
|
110
|
+
['deepseek-v4-flash', 1_000_000, 384_000],
|
|
146
111
|
],
|
|
147
|
-
modelLimits: {
|
|
148
|
-
'deepseek-v4-pro': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
149
|
-
'deepseek-v4-flash': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
150
|
-
},
|
|
151
112
|
category: 'cloud',
|
|
152
113
|
},
|
|
153
114
|
{
|
|
154
115
|
id: 'xai',
|
|
155
116
|
name: 'xAI Grok',
|
|
156
117
|
baseUrl: 'https://api.x.ai/v1',
|
|
157
|
-
needsApiKey: true,
|
|
158
118
|
apiKeyEnvVar: 'XAI_API_KEY',
|
|
159
|
-
|
|
119
|
+
models: [
|
|
160
120
|
// SOTA
|
|
161
|
-
'grok-4.6',
|
|
162
|
-
'grok-4.5',
|
|
163
|
-
'grok-4.3',
|
|
121
|
+
['grok-4.6', 500_000, 500_000],
|
|
122
|
+
['grok-4.5', 500_000, 500_000],
|
|
123
|
+
['grok-4.3', 1_000_000, 30_000],
|
|
164
124
|
// Fast
|
|
165
|
-
'grok-build-0.1',
|
|
125
|
+
['grok-build-0.1', 256_000, 256_000],
|
|
166
126
|
],
|
|
167
|
-
modelLimits: {
|
|
168
|
-
'grok-4.6': { contextWindowTokens: 500_000, maxOutputTokens: 500_000 },
|
|
169
|
-
'grok-4.5': { contextWindowTokens: 500_000, maxOutputTokens: 500_000 },
|
|
170
|
-
'grok-4.3': { contextWindowTokens: 1_000_000, maxOutputTokens: 30_000 },
|
|
171
|
-
'grok-build-0.1': { contextWindowTokens: 256_000, maxOutputTokens: 256_000 },
|
|
172
|
-
},
|
|
173
127
|
category: 'cloud',
|
|
174
128
|
},
|
|
175
129
|
{
|
|
176
130
|
id: 'z-ai',
|
|
177
131
|
name: 'Z.ai',
|
|
178
132
|
baseUrl: 'https://api.z.ai/api/paas/v4/',
|
|
179
|
-
needsApiKey: true,
|
|
180
133
|
apiKeyEnvVar: 'ZAI_API_KEY',
|
|
181
|
-
|
|
182
|
-
'glm-5.2',
|
|
183
|
-
'glm-5.1',
|
|
184
|
-
'glm-5-turbo',
|
|
185
|
-
'glm-4.7',
|
|
134
|
+
models: [
|
|
135
|
+
['glm-5.2', 1_000_000, 131_072],
|
|
136
|
+
['glm-5.1', 200_000, 131_072],
|
|
137
|
+
['glm-5-turbo', 200_000, 131_072],
|
|
138
|
+
['glm-4.7', 204_800, 131_072],
|
|
186
139
|
],
|
|
187
|
-
modelLimits: {
|
|
188
|
-
'glm-5.2': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
189
|
-
'glm-5.1': { contextWindowTokens: 200_000, maxOutputTokens: 131_072 },
|
|
190
|
-
'glm-5-turbo': { contextWindowTokens: 200_000, maxOutputTokens: 131_072 },
|
|
191
|
-
'glm-4.7': { contextWindowTokens: 204_800, maxOutputTokens: 131_072 },
|
|
192
|
-
},
|
|
193
140
|
category: 'cloud',
|
|
194
141
|
},
|
|
195
142
|
{
|
|
196
143
|
id: 'z-ai-coding',
|
|
197
144
|
name: 'Z.ai Coding Subscription',
|
|
198
145
|
baseUrl: 'https://api.z.ai/api/coding/paas/v4/',
|
|
199
|
-
needsApiKey: true,
|
|
200
146
|
apiKeyEnvVar: 'ZAI_API_KEY',
|
|
201
|
-
|
|
202
|
-
'glm-5.3',
|
|
203
|
-
'glm-5.2',
|
|
204
|
-
'glm-5.2-highspeed',
|
|
205
|
-
'glm-5-turbo',
|
|
147
|
+
models: [
|
|
148
|
+
['glm-5.3', 1_000_000, 131_072],
|
|
149
|
+
['glm-5.2', 1_000_000, 131_072],
|
|
150
|
+
['glm-5.2-highspeed', 1_000_000, 131_072],
|
|
151
|
+
['glm-5-turbo', 200_000, 131_072],
|
|
206
152
|
],
|
|
207
|
-
modelLimits: {
|
|
208
|
-
'glm-5.3': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
209
|
-
'glm-5.2': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
210
|
-
'glm-5.2-highspeed': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
211
|
-
'glm-5-turbo': { contextWindowTokens: 200_000, maxOutputTokens: 131_072 },
|
|
212
|
-
},
|
|
213
153
|
category: 'cloud',
|
|
214
154
|
},
|
|
215
155
|
{
|
|
216
156
|
id: 'kimi-code',
|
|
217
157
|
name: 'Kimi Code',
|
|
218
158
|
baseUrl: 'https://api.kimi.com/coding/v1',
|
|
219
|
-
needsApiKey: true,
|
|
220
159
|
apiKeyEnvVar: 'KIMI_API_KEY',
|
|
221
|
-
|
|
222
|
-
'k3',
|
|
223
|
-
'k3-256k',
|
|
224
|
-
'kimi-for-coding',
|
|
225
|
-
'kimi-for-coding-highspeed',
|
|
160
|
+
models: [
|
|
161
|
+
['k3', 1_048_576, 131_072],
|
|
162
|
+
['k3-256k', 262_144, 131_072],
|
|
163
|
+
['kimi-for-coding', 262_144, 32_768],
|
|
164
|
+
['kimi-for-coding-highspeed', 262_144, 32_768],
|
|
226
165
|
],
|
|
227
|
-
modelLimits: {
|
|
228
|
-
'k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
229
|
-
'k3-256k': { contextWindowTokens: 262_144, maxOutputTokens: 131_072 },
|
|
230
|
-
'kimi-for-coding': { contextWindowTokens: 262_144, maxOutputTokens: 32_768 },
|
|
231
|
-
'kimi-for-coding-highspeed': { contextWindowTokens: 262_144, maxOutputTokens: 32_768 },
|
|
232
|
-
},
|
|
233
166
|
category: 'cloud',
|
|
234
167
|
},
|
|
235
168
|
{
|
|
236
169
|
id: 'moonshot',
|
|
237
170
|
name: 'Moonshot AI (Kimi API)',
|
|
238
171
|
baseUrl: 'https://api.moonshot.ai/v1',
|
|
239
|
-
needsApiKey: true,
|
|
240
172
|
apiKeyEnvVar: 'MOONSHOT_API_KEY',
|
|
241
|
-
|
|
173
|
+
models: [
|
|
242
174
|
// SOTA
|
|
243
|
-
'kimi-k3',
|
|
244
|
-
'kimi-k2.7-code',
|
|
175
|
+
['kimi-k3', 1_048_576, 131_072],
|
|
176
|
+
['kimi-k2.7-code', 262_144, 262_144],
|
|
245
177
|
// Fast
|
|
246
|
-
'kimi-k2.6',
|
|
247
|
-
'kimi-k2.5',
|
|
178
|
+
['kimi-k2.6', 262_144, 262_144],
|
|
179
|
+
['kimi-k2.5', 262_144, 262_144],
|
|
248
180
|
],
|
|
249
|
-
modelLimits: {
|
|
250
|
-
'kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
251
|
-
'kimi-k2.7-code': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
252
|
-
'kimi-k2.6': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
253
|
-
'kimi-k2.5': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
254
|
-
},
|
|
255
181
|
category: 'cloud',
|
|
256
182
|
},
|
|
257
183
|
{
|
|
258
184
|
id: 'groq',
|
|
259
185
|
name: 'Groq',
|
|
260
186
|
baseUrl: 'https://api.groq.com/openai/v1',
|
|
261
|
-
needsApiKey: true,
|
|
262
187
|
apiKeyEnvVar: 'GROQ_API_KEY',
|
|
263
|
-
|
|
264
|
-
'openai/gpt-oss-120b',
|
|
265
|
-
'qwen/qwen3.6-27b',
|
|
266
|
-
'llama-3.3-70b-versatile',
|
|
188
|
+
models: [
|
|
189
|
+
['openai/gpt-oss-120b', 131_072, 65_536],
|
|
190
|
+
['qwen/qwen3.6-27b', 131_072, 16_384],
|
|
191
|
+
['llama-3.3-70b-versatile', 131_072, 32_768],
|
|
267
192
|
],
|
|
268
|
-
modelLimits: {
|
|
269
|
-
'openai/gpt-oss-120b': { contextWindowTokens: 131_072, maxOutputTokens: 65_536 },
|
|
270
|
-
'qwen/qwen3.6-27b': { contextWindowTokens: 131_072, maxOutputTokens: 16_384 },
|
|
271
|
-
'llama-3.3-70b-versatile': { contextWindowTokens: 131_072, maxOutputTokens: 32_768 },
|
|
272
|
-
},
|
|
273
193
|
category: 'cloud',
|
|
274
194
|
},
|
|
275
195
|
{
|
|
276
196
|
id: 'cerebras',
|
|
277
197
|
name: 'Cerebras',
|
|
278
198
|
baseUrl: 'https://api.cerebras.ai/v1',
|
|
279
|
-
needsApiKey: true,
|
|
280
199
|
apiKeyEnvVar: 'CEREBRAS_API_KEY',
|
|
281
|
-
|
|
282
|
-
'gpt-oss-120b',
|
|
283
|
-
'zai-glm-4.7',
|
|
200
|
+
models: [
|
|
201
|
+
['gpt-oss-120b', 131_072, 40_960],
|
|
202
|
+
['zai-glm-4.7', 131_072, 40_960],
|
|
284
203
|
],
|
|
285
|
-
modelLimits: {
|
|
286
|
-
'gpt-oss-120b': { contextWindowTokens: 131_072, maxOutputTokens: 40_960 },
|
|
287
|
-
'zai-glm-4.7': { contextWindowTokens: 131_072, maxOutputTokens: 40_960 },
|
|
288
|
-
},
|
|
289
204
|
category: 'cloud',
|
|
290
205
|
},
|
|
291
206
|
{
|
|
207
|
+
// Router-specific caps: Together serves some models below the origin's window.
|
|
292
208
|
id: 'together',
|
|
293
209
|
name: 'Together AI',
|
|
294
210
|
baseUrl: 'https://api.together.ai/v1',
|
|
295
|
-
needsApiKey: true,
|
|
296
211
|
apiKeyEnvVar: 'TOGETHER_API_KEY',
|
|
297
|
-
|
|
212
|
+
models: [
|
|
298
213
|
// SOTA
|
|
299
|
-
'moonshotai/Kimi-K3',
|
|
300
|
-
'deepseek-ai/DeepSeek-V4-Pro',
|
|
301
|
-
'Qwen/Qwen3.7-Max',
|
|
214
|
+
['moonshotai/Kimi-K3', 1_048_576, 131_072],
|
|
215
|
+
['deepseek-ai/DeepSeek-V4-Pro', 512_000, 384_000],
|
|
216
|
+
['Qwen/Qwen3.7-Max', 1_000_000, 500_000],
|
|
302
217
|
// Fast
|
|
303
|
-
'moonshotai/Kimi-K2.7-Code',
|
|
304
|
-
'zai-org/GLM-5.2',
|
|
305
|
-
'MiniMaxAI/MiniMax-M3',
|
|
306
|
-
],
|
|
307
|
-
modelLimits: {
|
|
308
|
-
'moonshotai/Kimi-K3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
309
|
-
'deepseek-ai/DeepSeek-V4-Pro': { contextWindowTokens: 512_000, maxOutputTokens: 384_000 },
|
|
310
|
-
'Qwen/Qwen3.7-Max': { contextWindowTokens: 1_000_000, maxOutputTokens: 500_000 },
|
|
311
|
-
'moonshotai/Kimi-K2.7-Code': { contextWindowTokens: 262_144, maxOutputTokens: 131_072 },
|
|
312
|
-
'zai-org/GLM-5.2': { contextWindowTokens: 512_000, maxOutputTokens: 164_000 },
|
|
313
|
-
'MiniMaxAI/MiniMax-M3': { contextWindowTokens: 524_288, maxOutputTokens: 250_000 },
|
|
314
|
-
},
|
|
218
|
+
['moonshotai/Kimi-K2.7-Code', 262_144, 131_072],
|
|
219
|
+
['zai-org/GLM-5.2', 512_000, 164_000],
|
|
220
|
+
['MiniMaxAI/MiniMax-M3', 524_288, 250_000],
|
|
221
|
+
],
|
|
315
222
|
category: 'cloud',
|
|
316
223
|
},
|
|
317
224
|
{
|
|
318
225
|
id: 'fireworks',
|
|
319
226
|
name: 'Fireworks AI',
|
|
320
227
|
baseUrl: 'https://api.fireworks.ai/inference/v1',
|
|
321
|
-
needsApiKey: true,
|
|
322
228
|
apiKeyEnvVar: 'FIREWORKS_API_KEY',
|
|
323
|
-
|
|
229
|
+
models: [
|
|
324
230
|
// SOTA
|
|
325
|
-
'accounts/fireworks/models/kimi-k3',
|
|
326
|
-
'accounts/fireworks/models/glm-5p2',
|
|
231
|
+
['accounts/fireworks/models/kimi-k3', 1_048_576, 131_072],
|
|
232
|
+
['accounts/fireworks/models/glm-5p2', 1_048_575, 131_072],
|
|
327
233
|
// Fast
|
|
328
|
-
'accounts/fireworks/routers/kimi-k3-fast',
|
|
329
|
-
'accounts/fireworks/models/minimax-m3',
|
|
330
|
-
'accounts/fireworks/models/deepseek-v4-flash',
|
|
331
|
-
'accounts/fireworks/models/deepseek-v4-pro-0813',
|
|
234
|
+
['accounts/fireworks/routers/kimi-k3-fast', 1_048_576, 131_072],
|
|
235
|
+
['accounts/fireworks/models/minimax-m3', 512_000, 512_000],
|
|
236
|
+
['accounts/fireworks/models/deepseek-v4-flash', 1_000_000, 384_000],
|
|
237
|
+
['accounts/fireworks/models/deepseek-v4-pro-0813', 1_000_000, 384_000],
|
|
332
238
|
],
|
|
333
|
-
modelLimits: {
|
|
334
|
-
'accounts/fireworks/models/kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
335
|
-
'accounts/fireworks/models/glm-5p2': { contextWindowTokens: 1_048_575, maxOutputTokens: 131_072 },
|
|
336
|
-
'accounts/fireworks/routers/kimi-k3-fast': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
337
|
-
'accounts/fireworks/models/minimax-m3': { contextWindowTokens: 512_000, maxOutputTokens: 512_000 },
|
|
338
|
-
'accounts/fireworks/models/deepseek-v4-flash': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
339
|
-
'accounts/fireworks/models/deepseek-v4-pro-0813': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
340
|
-
},
|
|
341
239
|
category: 'cloud',
|
|
342
240
|
},
|
|
343
241
|
{
|
|
344
242
|
id: 'huggingface',
|
|
345
243
|
name: 'Hugging Face Router',
|
|
346
244
|
baseUrl: 'https://router.huggingface.co/v1',
|
|
347
|
-
needsApiKey: true,
|
|
348
245
|
apiKeyHint: 'Hugging Face token (from https://huggingface.co/settings/tokens)',
|
|
349
246
|
apiKeyEnvVar: 'HF_TOKEN',
|
|
350
|
-
|
|
247
|
+
models: [
|
|
351
248
|
// SOTA
|
|
352
|
-
'moonshotai/Kimi-K3',
|
|
353
|
-
'zai-org/GLM-5.2',
|
|
354
|
-
'thinkingmachines/Inkling',
|
|
249
|
+
['moonshotai/Kimi-K3', 1_048_576, 131_072],
|
|
250
|
+
['zai-org/GLM-5.2', 262_144, 131_072],
|
|
251
|
+
['thinkingmachines/Inkling', 1_048_576, 1_048_576],
|
|
355
252
|
// Fast
|
|
356
|
-
'deepseek-ai/DeepSeek-V4-Flash',
|
|
357
|
-
'Qwen/Qwen3-Coder-Next',
|
|
253
|
+
['deepseek-ai/DeepSeek-V4-Flash', 1_048_576, 384_000],
|
|
254
|
+
['Qwen/Qwen3-Coder-Next', 262_144, 65_536],
|
|
358
255
|
],
|
|
359
|
-
modelLimits: {
|
|
360
|
-
'moonshotai/Kimi-K3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
361
|
-
'zai-org/GLM-5.2': { contextWindowTokens: 262_144, maxOutputTokens: 131_072 },
|
|
362
|
-
'thinkingmachines/Inkling': { contextWindowTokens: 1_048_576, maxOutputTokens: 1_048_576 },
|
|
363
|
-
'deepseek-ai/DeepSeek-V4-Flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 384_000 },
|
|
364
|
-
'Qwen/Qwen3-Coder-Next': { contextWindowTokens: 262_144, maxOutputTokens: 65_536 },
|
|
365
|
-
},
|
|
366
256
|
category: 'cloud',
|
|
367
257
|
},
|
|
368
258
|
{
|
|
369
259
|
id: 'nvidia',
|
|
370
260
|
name: 'NVIDIA NIM',
|
|
371
261
|
baseUrl: 'https://integrate.api.nvidia.com/v1',
|
|
372
|
-
needsApiKey: true,
|
|
373
262
|
apiKeyEnvVar: 'NVIDIA_API_KEY',
|
|
374
|
-
|
|
375
|
-
'nvidia/nemotron-3-ultra-550b-a55b',
|
|
376
|
-
'nvidia/nemotron-3.5-lightning-30b-a3b',
|
|
377
|
-
'nvidia/nemotron-3-super-120b-a12b',
|
|
378
|
-
'minimaxai/minimax-m3',
|
|
263
|
+
models: [
|
|
264
|
+
['nvidia/nemotron-3-ultra-550b-a55b', 1_000_000, 65_536],
|
|
265
|
+
['nvidia/nemotron-3.5-lightning-30b-a3b', 262_144, 262_144],
|
|
266
|
+
['nvidia/nemotron-3-super-120b-a12b', 262_144, 262_144],
|
|
267
|
+
['minimaxai/minimax-m3', 1_000_000, 16_384],
|
|
379
268
|
],
|
|
380
|
-
modelLimits: {
|
|
381
|
-
'nvidia/nemotron-3-ultra-550b-a55b': { contextWindowTokens: 1_000_000, maxOutputTokens: 65_536 },
|
|
382
|
-
'nvidia/nemotron-3.5-lightning-30b-a3b': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
383
|
-
'nvidia/nemotron-3-super-120b-a12b': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
384
|
-
'minimaxai/minimax-m3': { contextWindowTokens: 1_000_000, maxOutputTokens: 16_384 },
|
|
385
|
-
},
|
|
386
269
|
category: 'cloud',
|
|
387
270
|
},
|
|
388
271
|
{
|
|
389
272
|
id: 'qwen-token-plan',
|
|
390
273
|
name: 'Qwen Token Plan',
|
|
391
274
|
baseUrl: 'https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1',
|
|
392
|
-
needsApiKey: true,
|
|
393
275
|
apiKeyHint: 'Alibaba Cloud Model Studio API key with a token plan',
|
|
394
276
|
apiKeyEnvVar: 'QWEN_TOKEN_PLAN_API_KEY',
|
|
395
|
-
|
|
277
|
+
models: [
|
|
396
278
|
// SOTA
|
|
397
|
-
'qwen3.8-max',
|
|
398
|
-
'qwen3.7-max',
|
|
399
|
-
'glm-5.2',
|
|
400
|
-
'deepseek-v4-pro',
|
|
279
|
+
['qwen3.8-max', 1_000_000, 131_072],
|
|
280
|
+
['qwen3.7-max', 1_000_000, 131_072],
|
|
281
|
+
['glm-5.2', 1_000_000, 131_072],
|
|
282
|
+
['deepseek-v4-pro', 1_000_000, 384_000],
|
|
401
283
|
// Fast
|
|
402
|
-
'qwen3.7-plus',
|
|
403
|
-
'kimi-k2.7-code',
|
|
404
|
-
'deepseek-v4-flash',
|
|
284
|
+
['qwen3.7-plus', 1_000_000, 65_536],
|
|
285
|
+
['kimi-k2.7-code', 262_144, 262_144],
|
|
286
|
+
['deepseek-v4-flash', 1_000_000, 384_000],
|
|
405
287
|
],
|
|
406
|
-
modelLimits: {
|
|
407
|
-
'qwen3.8-max': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
408
|
-
'qwen3.7-max': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
409
|
-
'glm-5.2': { contextWindowTokens: 1_000_000, maxOutputTokens: 131_072 },
|
|
410
|
-
'deepseek-v4-pro': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
411
|
-
'qwen3.7-plus': { contextWindowTokens: 1_000_000, maxOutputTokens: 65_536 },
|
|
412
|
-
'kimi-k2.7-code': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
413
|
-
'deepseek-v4-flash': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
414
|
-
},
|
|
415
288
|
category: 'cloud',
|
|
416
289
|
},
|
|
417
290
|
{
|
|
418
291
|
id: 'opencode-zen',
|
|
419
292
|
name: 'OpenCode Zen',
|
|
420
293
|
baseUrl: 'https://opencode.ai/zen/v1',
|
|
421
|
-
needsApiKey: true,
|
|
422
294
|
apiKeyEnvVar: 'OPENCODE_API_KEY',
|
|
423
|
-
|
|
295
|
+
models: [
|
|
424
296
|
// SOTA
|
|
425
|
-
'claude-opus-5',
|
|
426
|
-
'gpt-5.5',
|
|
427
|
-
'claude-opus-4-8',
|
|
297
|
+
['claude-opus-5', 1_000_000, 128_000],
|
|
298
|
+
['gpt-5.5', 1_050_000, 128_000],
|
|
299
|
+
['claude-opus-4-8', 1_000_000, 128_000],
|
|
428
300
|
// Fast
|
|
429
|
-
'claude-sonnet-4-6',
|
|
430
|
-
'kimi-k3',
|
|
431
|
-
'gemini-3.7-flash',
|
|
432
|
-
'minimax-m3',
|
|
301
|
+
['claude-sonnet-4-6', 1_000_000, 64_000],
|
|
302
|
+
['kimi-k3', 1_048_576, 131_072],
|
|
303
|
+
['gemini-3.7-flash', 1_048_576, 65_536],
|
|
304
|
+
['minimax-m3', 512_000, 128_000],
|
|
433
305
|
],
|
|
434
|
-
modelLimits: {
|
|
435
|
-
'claude-opus-5': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
436
|
-
'gpt-5.5': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
437
|
-
'claude-opus-4-8': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
438
|
-
'claude-sonnet-4-6': { contextWindowTokens: 1_000_000, maxOutputTokens: 64_000 },
|
|
439
|
-
'kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
440
|
-
'gemini-3.7-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
441
|
-
'minimax-m3': { contextWindowTokens: 512_000, maxOutputTokens: 128_000 },
|
|
442
|
-
},
|
|
443
306
|
category: 'cloud',
|
|
444
307
|
},
|
|
445
308
|
{
|
|
446
309
|
id: 'requesty',
|
|
447
310
|
name: 'Requesty',
|
|
448
311
|
baseUrl: 'https://router.requesty.ai/v1',
|
|
449
|
-
needsApiKey: true,
|
|
450
312
|
apiKeyHint: 'API Key (from https://app.requesty.ai/api-keys)',
|
|
451
|
-
|
|
452
|
-
'claude-opus-4-8',
|
|
453
|
-
'gpt-5.5@eu',
|
|
454
|
-
'gemini-3.5-flash',
|
|
455
|
-
'kimi-k3',
|
|
313
|
+
models: [
|
|
314
|
+
['claude-opus-4-8', 1_000_000, 128_000],
|
|
315
|
+
['gpt-5.5@eu', 1_050_000, 128_000],
|
|
316
|
+
['gemini-3.5-flash', 1_048_576, 65_535],
|
|
317
|
+
['kimi-k3', 1_048_576, 262_144],
|
|
456
318
|
],
|
|
457
|
-
modelLimits: {
|
|
458
|
-
'claude-opus-4-8': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
459
|
-
'gpt-5.5@eu': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
460
|
-
'gemini-3.5-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_535 },
|
|
461
|
-
'kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 262_144 },
|
|
462
|
-
},
|
|
463
319
|
category: 'cloud',
|
|
464
320
|
},
|
|
465
321
|
{
|
|
466
322
|
id: 'thesean',
|
|
467
323
|
name: 'Thesean AI',
|
|
468
324
|
baseUrl: 'https://api.thesean.ai',
|
|
469
|
-
needsApiKey: true,
|
|
470
325
|
apiKeyHint: 'API Key (from https://app.thesean.ai/)',
|
|
471
|
-
|
|
326
|
+
models: [
|
|
472
327
|
'ship-like/claude-opus-4-8',
|
|
473
328
|
],
|
|
474
329
|
category: 'cloud',
|
|
@@ -477,193 +332,129 @@ export const PROVIDER_PRESETS = [
|
|
|
477
332
|
id: 'atlas-cloud',
|
|
478
333
|
name: 'Atlas Cloud',
|
|
479
334
|
baseUrl: 'https://api.atlascloud.ai/v1',
|
|
480
|
-
needsApiKey: true,
|
|
481
335
|
apiKeyHint: 'API Key (from atlascloud.ai/developer)',
|
|
482
|
-
|
|
483
|
-
'gpt-5.6-sol',
|
|
484
|
-
],
|
|
485
|
-
modelLimits: {
|
|
336
|
+
models: [
|
|
486
337
|
// No models.dev entry for Atlas; the gpt-5.6 family reports an identical
|
|
487
338
|
// window across every catalogued provider that serves it.
|
|
488
|
-
'gpt-5.6-sol'
|
|
489
|
-
|
|
339
|
+
['gpt-5.6-sol', 1_050_000, 128_000],
|
|
340
|
+
],
|
|
490
341
|
category: 'cloud',
|
|
491
342
|
},
|
|
492
343
|
{
|
|
493
344
|
id: 'openai-subscription',
|
|
494
345
|
name: 'OpenAI Subscription',
|
|
495
346
|
baseUrl: 'https://chatgpt.com/backend-api/codex',
|
|
496
|
-
needsApiKey: false,
|
|
497
347
|
auth: 'chatgpt-oauth',
|
|
498
|
-
|
|
499
|
-
'gpt-5.6-sol',
|
|
500
|
-
'gpt-5.6-terra',
|
|
501
|
-
'gpt-5.6-luna',
|
|
502
|
-
'gpt-5.5',
|
|
503
|
-
'gpt-5.4',
|
|
504
|
-
'gpt-5.4-mini',
|
|
505
|
-
'gpt-5.3-codex-spark',
|
|
506
|
-
],
|
|
507
|
-
modelLimits: {
|
|
508
|
-
'gpt-5.6-sol': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
509
|
-
'gpt-5.6-terra': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
510
|
-
'gpt-5.6-luna': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
511
|
-
'gpt-5.5': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
512
|
-
'gpt-5.4': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
513
|
-
'gpt-5.4-mini': { contextWindowTokens: 400_000, maxOutputTokens: 128_000 },
|
|
348
|
+
models: [
|
|
349
|
+
['gpt-5.6-sol', 1_050_000, 128_000],
|
|
350
|
+
['gpt-5.6-terra', 1_050_000, 128_000],
|
|
351
|
+
['gpt-5.6-luna', 1_050_000, 128_000],
|
|
352
|
+
['gpt-5.5', 1_050_000, 128_000],
|
|
353
|
+
['gpt-5.4', 1_050_000, 128_000],
|
|
354
|
+
['gpt-5.4-mini', 400_000, 128_000],
|
|
514
355
|
// The spark variant is the lightweight Codex line: 128K context, 32K output.
|
|
515
|
-
'gpt-5.3-codex-spark'
|
|
516
|
-
|
|
356
|
+
['gpt-5.3-codex-spark', 128_000, 32_000],
|
|
357
|
+
],
|
|
517
358
|
category: 'cloud',
|
|
518
359
|
},
|
|
519
360
|
{
|
|
361
|
+
// Poe model ids are provider-prefixed, and Poe caps several models below the
|
|
362
|
+
// origin window (e.g. gpt-5.5 at 400K despite OpenAI's 1.05M).
|
|
520
363
|
id: 'poe',
|
|
521
364
|
name: 'Poe',
|
|
522
365
|
baseUrl: 'https://api.poe.com/v1',
|
|
523
|
-
needsApiKey: true,
|
|
524
366
|
apiKeyHint: 'API Key (from poe.com/api_key)',
|
|
525
|
-
|
|
367
|
+
models: [
|
|
526
368
|
// SOTA
|
|
527
|
-
'anthropic/claude-opus-4.8',
|
|
528
|
-
'openai/gpt-5.5',
|
|
529
|
-
'google/gemini-3.5-flash',
|
|
369
|
+
['anthropic/claude-opus-4.8', 1_048_576, 128_000],
|
|
370
|
+
['openai/gpt-5.5', 400_000, 128_000],
|
|
371
|
+
['google/gemini-3.5-flash', 1_048_576, 65_536],
|
|
530
372
|
// Fast
|
|
531
|
-
'openai/gpt-5.4-mini',
|
|
532
|
-
'anthropic/claude-sonnet-4.6',
|
|
533
|
-
'novita/kimi-k2.5',
|
|
373
|
+
['openai/gpt-5.4-mini', 400_000, 128_000],
|
|
374
|
+
['anthropic/claude-sonnet-4.6', 983_040, 128_000],
|
|
375
|
+
['novita/kimi-k2.5', 128_000, 262_144],
|
|
534
376
|
],
|
|
535
|
-
// Poe model ids are provider-prefixed, and Poe caps several models below the
|
|
536
|
-
// origin window (e.g. gpt-5.5 at 400K despite OpenAI's 1.05M).
|
|
537
|
-
modelLimits: {
|
|
538
|
-
'anthropic/claude-opus-4.8': { contextWindowTokens: 1_048_576, maxOutputTokens: 128_000 },
|
|
539
|
-
'openai/gpt-5.5': { contextWindowTokens: 400_000, maxOutputTokens: 128_000 },
|
|
540
|
-
'google/gemini-3.5-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
541
|
-
'openai/gpt-5.4-mini': { contextWindowTokens: 400_000, maxOutputTokens: 128_000 },
|
|
542
|
-
'anthropic/claude-sonnet-4.6': { contextWindowTokens: 983_040, maxOutputTokens: 128_000 },
|
|
543
|
-
'novita/kimi-k2.5': { contextWindowTokens: 128_000, maxOutputTokens: 262_144 },
|
|
544
|
-
},
|
|
545
377
|
category: 'cloud',
|
|
546
378
|
},
|
|
547
379
|
{
|
|
548
380
|
id: 'kilo',
|
|
549
381
|
name: 'Kilo Gateway',
|
|
550
382
|
baseUrl: 'https://api.kilo.ai/api/gateway',
|
|
551
|
-
needsApiKey: true,
|
|
552
383
|
apiKeyEnvVar: 'KILO_API_KEY',
|
|
553
|
-
|
|
384
|
+
models: [
|
|
554
385
|
// SOTA
|
|
555
|
-
'anthropic/claude-opus-5',
|
|
556
|
-
'openai/gpt-5.6-sol',
|
|
557
|
-
'moonshotai/kimi-k3',
|
|
558
|
-
'z-ai/glm-5.2',
|
|
386
|
+
['anthropic/claude-opus-5', 1_000_000, 128_000],
|
|
387
|
+
['openai/gpt-5.6-sol', 1_050_000, 128_000],
|
|
388
|
+
['moonshotai/kimi-k3', 1_048_576, 1_048_576],
|
|
389
|
+
['z-ai/glm-5.2', 1_048_576, 131_072],
|
|
559
390
|
// Fast
|
|
560
|
-
'google/gemini-3.7-flash',
|
|
561
|
-
'x-ai/grok-4.6',
|
|
562
|
-
'deepseek/deepseek-v4-pro-0813',
|
|
563
|
-
'kilo-auto/frontier',
|
|
391
|
+
['google/gemini-3.7-flash', 1_048_576, 65_536],
|
|
392
|
+
['x-ai/grok-4.6', 500_000, 500_000],
|
|
393
|
+
['deepseek/deepseek-v4-pro-0813', 1_048_576, 384_000],
|
|
394
|
+
['kilo-auto/frontier', 1_000_000, 128_000],
|
|
564
395
|
],
|
|
565
|
-
modelLimits: {
|
|
566
|
-
'anthropic/claude-opus-5': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
567
|
-
'openai/gpt-5.6-sol': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
568
|
-
'moonshotai/kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 1_048_576 },
|
|
569
|
-
'z-ai/glm-5.2': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
570
|
-
'google/gemini-3.7-flash': { contextWindowTokens: 1_048_576, maxOutputTokens: 65_536 },
|
|
571
|
-
'x-ai/grok-4.6': { contextWindowTokens: 500_000, maxOutputTokens: 500_000 },
|
|
572
|
-
'deepseek/deepseek-v4-pro-0813': { contextWindowTokens: 1_048_576, maxOutputTokens: 384_000 },
|
|
573
|
-
'kilo-auto/frontier': { contextWindowTokens: 1_000_000, maxOutputTokens: 128_000 },
|
|
574
|
-
},
|
|
575
396
|
category: 'cloud',
|
|
576
397
|
},
|
|
577
398
|
{
|
|
578
399
|
id: 'novita',
|
|
579
400
|
name: 'Novita AI',
|
|
580
401
|
baseUrl: 'https://api.novita.ai/openai',
|
|
581
|
-
needsApiKey: true,
|
|
582
402
|
apiKeyEnvVar: 'NOVITA_API_KEY',
|
|
583
|
-
|
|
403
|
+
models: [
|
|
584
404
|
// SOTA
|
|
585
|
-
'moonshotai/kimi-k3',
|
|
586
|
-
'zai-org/glm-5.2',
|
|
587
|
-
'qwen/qwen3.7-max',
|
|
588
|
-
'deepseek/deepseek-v4-pro',
|
|
405
|
+
['moonshotai/kimi-k3', 1_048_576, 1_048_576],
|
|
406
|
+
['zai-org/glm-5.2', 1_048_576, 131_072],
|
|
407
|
+
['qwen/qwen3.7-max', 1_000_000, 65_536],
|
|
408
|
+
['deepseek/deepseek-v4-pro', 1_048_576, 393_216],
|
|
589
409
|
// Fast
|
|
590
|
-
'moonshotai/kimi-k2.7-code',
|
|
410
|
+
['moonshotai/kimi-k2.7-code', 262_144, 262_144],
|
|
591
411
|
],
|
|
592
|
-
modelLimits: {
|
|
593
|
-
'moonshotai/kimi-k3': { contextWindowTokens: 1_048_576, maxOutputTokens: 1_048_576 },
|
|
594
|
-
'zai-org/glm-5.2': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
595
|
-
'qwen/qwen3.7-max': { contextWindowTokens: 1_000_000, maxOutputTokens: 65_536 },
|
|
596
|
-
'deepseek/deepseek-v4-pro': { contextWindowTokens: 1_048_576, maxOutputTokens: 393_216 },
|
|
597
|
-
'moonshotai/kimi-k2.7-code': { contextWindowTokens: 262_144, maxOutputTokens: 262_144 },
|
|
598
|
-
},
|
|
599
412
|
category: 'cloud',
|
|
600
413
|
},
|
|
601
414
|
{
|
|
602
415
|
id: 'deep-infra',
|
|
603
416
|
name: 'Deep Infra',
|
|
604
417
|
baseUrl: 'https://api.deepinfra.com/v1/openai',
|
|
605
|
-
needsApiKey: true,
|
|
606
418
|
apiKeyEnvVar: 'DEEPINFRA_API_KEY',
|
|
607
|
-
|
|
419
|
+
models: [
|
|
608
420
|
// SOTA
|
|
609
|
-
'moonshotai/Kimi-K3',
|
|
610
|
-
'thinkingmachines/Inkling',
|
|
421
|
+
['moonshotai/Kimi-K3', 1_048_576, 131_072],
|
|
422
|
+
['thinkingmachines/Inkling', 524_288, 1_048_576],
|
|
611
423
|
// Fast
|
|
612
|
-
'deepseek-ai/DeepSeek-V4-Flash-0731',
|
|
613
|
-
'MiniMaxAI/MiniMax-M3',
|
|
614
|
-
'meta-llama/Llama-3.3-70B-Instruct-Turbo',
|
|
424
|
+
['deepseek-ai/DeepSeek-V4-Flash-0731', 1_048_576, 384_000],
|
|
425
|
+
['MiniMaxAI/MiniMax-M3', 524_288, 128_000],
|
|
426
|
+
['meta-llama/Llama-3.3-70B-Instruct-Turbo', 131_072, 131_072],
|
|
615
427
|
],
|
|
616
|
-
modelLimits: {
|
|
617
|
-
'moonshotai/Kimi-K3': { contextWindowTokens: 1_048_576, maxOutputTokens: 131_072 },
|
|
618
|
-
'thinkingmachines/Inkling': { contextWindowTokens: 524_288, maxOutputTokens: 1_048_576 },
|
|
619
|
-
'deepseek-ai/DeepSeek-V4-Flash-0731': { contextWindowTokens: 1_048_576, maxOutputTokens: 384_000 },
|
|
620
|
-
'MiniMaxAI/MiniMax-M3': { contextWindowTokens: 524_288, maxOutputTokens: 128_000 },
|
|
621
|
-
'meta-llama/Llama-3.3-70B-Instruct-Turbo': { contextWindowTokens: 131_072, maxOutputTokens: 131_072 },
|
|
622
|
-
},
|
|
623
428
|
category: 'cloud',
|
|
624
429
|
},
|
|
625
430
|
{
|
|
626
431
|
id: 'siliconflow',
|
|
627
432
|
name: 'SiliconFlow',
|
|
628
433
|
baseUrl: 'https://api.siliconflow.com/v1',
|
|
629
|
-
needsApiKey: true,
|
|
630
434
|
apiKeyEnvVar: 'SILICONFLOW_API_KEY',
|
|
631
|
-
|
|
435
|
+
models: [
|
|
632
436
|
// SOTA
|
|
633
|
-
'zai-org/GLM-5.2',
|
|
634
|
-
'deepseek-ai/DeepSeek-V4-Pro',
|
|
437
|
+
['zai-org/GLM-5.2', 1_049_000, 262_000],
|
|
438
|
+
['deepseek-ai/DeepSeek-V4-Pro', 1_000_000, 384_000],
|
|
635
439
|
// Fast
|
|
636
|
-
'Qwen/Qwen3-Coder-480B-A35B-Instruct',
|
|
637
|
-
'moonshotai/Kimi-K2.6',
|
|
440
|
+
['Qwen/Qwen3-Coder-480B-A35B-Instruct', 262_000, 262_000],
|
|
441
|
+
['moonshotai/Kimi-K2.6', 262_000, 262_000],
|
|
638
442
|
],
|
|
639
|
-
modelLimits: {
|
|
640
|
-
'zai-org/GLM-5.2': { contextWindowTokens: 1_049_000, maxOutputTokens: 262_000 },
|
|
641
|
-
'deepseek-ai/DeepSeek-V4-Pro': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
642
|
-
'Qwen/Qwen3-Coder-480B-A35B-Instruct': { contextWindowTokens: 262_000, maxOutputTokens: 262_000 },
|
|
643
|
-
'moonshotai/Kimi-K2.6': { contextWindowTokens: 262_000, maxOutputTokens: 262_000 },
|
|
644
|
-
},
|
|
645
443
|
category: 'cloud',
|
|
646
444
|
},
|
|
647
445
|
{
|
|
648
446
|
id: 'nebius',
|
|
649
447
|
name: 'Nebius AI Studio',
|
|
650
448
|
baseUrl: 'https://api.studio.nebius.com/v1',
|
|
651
|
-
needsApiKey: true,
|
|
652
449
|
apiKeyEnvVar: 'NEBIUS_API_KEY',
|
|
653
|
-
|
|
450
|
+
models: [
|
|
654
451
|
// SOTA
|
|
655
|
-
'deepseek-ai/DeepSeek-V4-Pro',
|
|
656
|
-
'moonshotai/Kimi-K3',
|
|
452
|
+
['deepseek-ai/DeepSeek-V4-Pro', 1_000_000, 384_000],
|
|
453
|
+
['moonshotai/Kimi-K3', 1_048_576, 8_000],
|
|
657
454
|
// Fast
|
|
658
|
-
'zai-org/GLM-5.2',
|
|
659
|
-
'nvidia/nemotron-3-super-120b-a12b',
|
|
455
|
+
['zai-org/GLM-5.2', 432_000, 432_000],
|
|
456
|
+
['nvidia/nemotron-3-super-120b-a12b', 256_000, 32_768],
|
|
660
457
|
],
|
|
661
|
-
modelLimits: {
|
|
662
|
-
'deepseek-ai/DeepSeek-V4-Pro': { contextWindowTokens: 1_000_000, maxOutputTokens: 384_000 },
|
|
663
|
-
'moonshotai/Kimi-K3': { contextWindowTokens: 1_048_576, maxOutputTokens: 8_000 },
|
|
664
|
-
'zai-org/GLM-5.2': { contextWindowTokens: 432_000, maxOutputTokens: 432_000 },
|
|
665
|
-
'nvidia/nemotron-3-super-120b-a12b': { contextWindowTokens: 256_000, maxOutputTokens: 32_768 },
|
|
666
|
-
},
|
|
667
458
|
category: 'cloud',
|
|
668
459
|
},
|
|
669
460
|
// ── Local providers (no API key) ────────────────────────────────────
|
|
@@ -671,8 +462,7 @@ export const PROVIDER_PRESETS = [
|
|
|
671
462
|
id: 'ollama',
|
|
672
463
|
name: 'Ollama',
|
|
673
464
|
baseUrl: 'http://localhost:11434/v1',
|
|
674
|
-
|
|
675
|
-
suggestedModels: [
|
|
465
|
+
models: [
|
|
676
466
|
'qwen3-coder',
|
|
677
467
|
'devstral-small-2512',
|
|
678
468
|
'gemma4:26b',
|
|
@@ -684,24 +474,38 @@ export const PROVIDER_PRESETS = [
|
|
|
684
474
|
id: 'llamacpp',
|
|
685
475
|
name: 'llama.cpp server',
|
|
686
476
|
baseUrl: 'http://localhost:8080/v1',
|
|
687
|
-
needsApiKey: false,
|
|
688
477
|
category: 'local',
|
|
689
478
|
},
|
|
690
479
|
{
|
|
691
480
|
id: 'mlx-server',
|
|
692
481
|
name: 'MLX Server',
|
|
693
482
|
baseUrl: 'http://localhost:8080/v1',
|
|
694
|
-
needsApiKey: false,
|
|
695
483
|
category: 'local',
|
|
696
484
|
},
|
|
697
485
|
{
|
|
698
486
|
id: 'lmstudio',
|
|
699
487
|
name: 'LM Studio',
|
|
700
488
|
baseUrl: 'http://localhost:1234/v1',
|
|
701
|
-
needsApiKey: false,
|
|
702
489
|
category: 'local',
|
|
703
490
|
},
|
|
704
491
|
];
|
|
492
|
+
/** Expand one compact definition into the public preset record. */
|
|
493
|
+
function expandPreset(definition) {
|
|
494
|
+
const tuples = definition.models?.filter((model) => Array.isArray(model)) ?? [];
|
|
495
|
+
return {
|
|
496
|
+
id: definition.id,
|
|
497
|
+
name: definition.name,
|
|
498
|
+
baseUrl: definition.baseUrl,
|
|
499
|
+
needsApiKey: definition.category === 'cloud' && definition.auth == null,
|
|
500
|
+
...(definition.auth ? { auth: definition.auth } : {}),
|
|
501
|
+
...(definition.apiKeyHint ? { apiKeyHint: definition.apiKeyHint } : {}),
|
|
502
|
+
...(definition.apiKeyEnvVar ? { apiKeyEnvVar: definition.apiKeyEnvVar } : {}),
|
|
503
|
+
...(definition.models ? { suggestedModels: definition.models.map(model => typeof model === 'string' ? model : model[0]) } : {}),
|
|
504
|
+
...(tuples.length > 0 ? { modelLimits: Object.fromEntries(tuples.map(([model, contextWindowTokens, maxOutputTokens]) => [model, { contextWindowTokens, maxOutputTokens }])) } : {}),
|
|
505
|
+
category: definition.category,
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
export const PROVIDER_PRESETS = PRESET_DEFINITIONS.map(expandPreset);
|
|
705
509
|
export function findPreset(id) {
|
|
706
510
|
// Accept the former picker ids without keeping duplicate preset records.
|
|
707
511
|
const canonicalId = id === 'openai' ? 'openai-api-key' : id === 'chatgpt-codex' ? 'openai-subscription' : id;
|