@denizokcu/haze 0.10.0 → 0.11.0
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 +77 -1
- package/README.md +66 -25
- package/SECURITY.md +22 -0
- package/bin/haze.js +102 -1
- package/dist/buildInfo.json +7 -0
- package/dist/cli/chat/TaskBar.d.ts +2 -1
- package/dist/cli/chat/TaskBar.js +7 -4
- package/dist/cli/chat/contextReport.js +2 -0
- package/dist/cli/chat/fileMentionSuggestions.js +3 -2
- package/dist/cli/chat/liveRegion.d.ts +25 -0
- package/dist/cli/chat/liveRegion.js +48 -0
- package/dist/cli/chat/messages.d.ts +33 -2
- package/dist/cli/chat/messages.js +216 -33
- package/dist/cli/chat/sessionLifecycle.d.ts +9 -0
- package/dist/cli/chat/sessionLifecycle.js +64 -14
- package/dist/cli/chat/sessionRecorder.js +75 -7
- package/dist/cli/chat/startupInfo.d.ts +0 -1
- package/dist/cli/chat/startupInfo.js +11 -15
- package/dist/cli/chat/wizardDispatch.js +111 -12
- package/dist/cli/commands/chat.d.ts +5 -0
- package/dist/cli/commands/chat.js +203 -101
- package/dist/cli/commands/commands.d.ts +2 -0
- package/dist/cli/commands/commands.js +10 -5
- package/dist/cli/commands/doctor.d.ts +19 -0
- package/dist/cli/commands/doctor.js +76 -0
- package/dist/cli/commands/formatters.js +2 -0
- package/dist/cli/commands/ndjsonSink.d.ts +23 -0
- package/dist/cli/commands/ndjsonSink.js +38 -0
- package/dist/cli/commands/providerWizard.d.ts +9 -2
- package/dist/cli/commands/providerWizard.js +37 -4
- package/dist/cli/commands/runCommand.d.ts +3 -0
- package/dist/cli/commands/runCommand.js +117 -11
- package/dist/cli/commands/streaming/abortCause.d.ts +24 -0
- package/dist/cli/commands/streaming/abortCause.js +16 -0
- package/dist/cli/commands/streaming/assistantText.js +9 -2
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +65 -0
- package/dist/cli/commands/streaming/goalCheckpoint.js +23 -0
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +64 -0
- package/dist/cli/commands/streaming/goalSupervisor.js +127 -0
- package/dist/cli/commands/streaming/toolCallRecovery.d.ts +2 -0
- package/dist/cli/commands/streaming/toolCallRecovery.js +24 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +29 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.js +50 -4
- package/dist/cli/commands/streaming/toolResultState.d.ts +6 -1
- package/dist/cli/commands/streaming/toolResultState.js +29 -7
- package/dist/cli/commands/streaming/turnOutcome.d.ts +17 -0
- package/dist/cli/commands/streaming/turnOutcome.js +27 -11
- package/dist/cli/commands/streaming.d.ts +70 -3
- package/dist/cli/commands/streaming.js +491 -77
- package/dist/cli/commands/wizardActions.d.ts +1 -0
- package/dist/cli/commands/wizardActions.js +1 -0
- package/dist/cli/commands/wizardPrompts.js +7 -1
- package/dist/cli/commands/wizardSuggestions.js +5 -3
- package/dist/cli/index.js +68 -22
- package/dist/cli/terminalTitle.js +1 -1
- package/dist/config/modelDiscovery.d.ts +51 -0
- package/dist/config/modelDiscovery.js +164 -1
- package/dist/config/privateStorage.js +28 -2
- package/dist/config/providerAuth.d.ts +14 -0
- package/dist/config/providerAuth.js +49 -0
- package/dist/config/providerPresets.d.ts +39 -7
- package/dist/config/providerPresets.js +371 -100
- package/dist/config/providers.js +2 -0
- package/dist/config/settings.d.ts +36 -0
- package/dist/config/settings.js +9 -0
- package/dist/core/agent/budgets.d.ts +10 -0
- package/dist/core/agent/budgets.js +10 -0
- package/dist/core/agent/compaction.d.ts +38 -0
- package/dist/core/agent/compaction.js +92 -17
- package/dist/core/agent/completionController.d.ts +230 -0
- package/dist/core/agent/completionController.js +287 -0
- package/dist/core/agent/contextBudget.d.ts +38 -0
- package/dist/core/agent/contextBudget.js +60 -7
- package/dist/core/agent/events.d.ts +74 -0
- package/dist/core/agent/reasoningPolicy.d.ts +31 -0
- package/dist/core/agent/reasoningPolicy.js +27 -0
- package/dist/core/agent/toolCapabilities.d.ts +27 -0
- package/dist/core/agent/toolCapabilities.js +58 -0
- package/dist/core/agent/toolExecutionBudget.d.ts +35 -0
- package/dist/core/agent/toolExecutionBudget.js +49 -0
- package/dist/core/agent/toolOutputStore.d.ts +8 -0
- package/dist/core/agent/toolOutputStore.js +10 -10
- package/dist/core/agent/toolResults.d.ts +12 -0
- package/dist/core/agent/toolResults.js +38 -0
- package/dist/core/agent/turnBudget.d.ts +35 -0
- package/dist/core/agent/turnBudget.js +27 -0
- package/dist/core/agent/turnPolicy.d.ts +11 -0
- package/dist/core/agent/turnPolicy.js +19 -0
- package/dist/core/agent/workState.d.ts +75 -0
- package/dist/core/agent/workState.js +120 -9
- package/dist/core/deadline.d.ts +33 -0
- package/dist/core/deadline.js +74 -0
- package/dist/core/goal/completionPolicy.d.ts +27 -0
- package/dist/core/goal/completionPolicy.js +37 -1
- package/dist/core/limits/byteBudgets.d.ts +2 -0
- package/dist/core/limits/byteBudgets.js +2 -0
- package/dist/core/limits/textBudgets.d.ts +2 -0
- package/dist/core/limits/textBudgets.js +2 -0
- package/dist/core/log/llmLog.js +7 -0
- package/dist/core/persistence/orderedFileWriter.d.ts +10 -0
- package/dist/core/persistence/orderedFileWriter.js +16 -2
- package/dist/core/process/backgroundRegistry.js +8 -7
- package/dist/core/process/runBoundedProcess.d.ts +8 -2
- package/dist/core/process/runBoundedProcess.js +15 -6
- package/dist/core/safety/missingExecutable.d.ts +42 -0
- package/dist/core/safety/missingExecutable.js +77 -0
- package/dist/core/session/sessionStore.d.ts +37 -0
- package/dist/core/session/sessionStore.js +215 -51
- package/dist/core/subagent/contracts.d.ts +4 -0
- package/dist/core/subagent/contracts.js +1 -0
- package/dist/core/subagent/subagentCoordinator.d.ts +4 -0
- package/dist/core/subagent/subagentCoordinator.js +32 -2
- package/dist/core/subagent/subagentRunner.js +17 -37
- package/dist/llm/client.d.ts +17 -1
- package/dist/llm/client.js +82 -14
- package/dist/llm/hazeTools.d.ts +554 -80
- package/dist/llm/hazeTools.js +103 -24
- package/dist/llm/lsp.d.ts +24 -4
- package/dist/llm/lsp.js +72 -11
- package/dist/llm/lspTools.d.ts +2366 -0
- package/dist/llm/lspTools.js +87 -79
- package/dist/llm/openaiCodex.d.ts +3 -0
- package/dist/llm/openaiCodex.js +47 -0
- package/dist/llm/openaiCodexOAuth.d.ts +54 -0
- package/dist/llm/openaiCodexOAuth.js +214 -0
- package/dist/llm/requestContext.d.ts +3 -0
- package/dist/llm/requestContext.js +7 -4
- package/dist/llm/systemPrompt.d.ts +11 -0
- package/dist/llm/systemPrompt.js +12 -6
- package/dist/llm/toolResultTypes.d.ts +8 -1
- package/dist/llm/tools/bashTool.d.ts +48 -16
- package/dist/llm/tools/bashTool.js +5 -0
- package/dist/llm/tools/editMatch.d.ts +14 -0
- package/dist/llm/tools/editMatch.js +72 -0
- package/dist/llm/tools/failures.d.ts +2 -0
- package/dist/llm/tools/failures.js +1 -0
- package/dist/llm/tools/fetchTool.d.ts +16 -0
- package/dist/llm/tools/fileToolShared.d.ts +4 -3
- package/dist/llm/tools/fileToolShared.js +16 -21
- package/dist/llm/tools/gitIgnore.d.ts +49 -0
- package/dist/llm/tools/gitIgnore.js +129 -0
- package/dist/llm/tools/readRecovery.d.ts +10 -0
- package/dist/llm/tools/readRecovery.js +135 -0
- package/dist/llm/tools/toolContext.d.ts +1 -1
- package/dist/llm/tools/toolContext.js +61 -32
- package/dist/llm/webFetch.d.ts +17 -0
- package/dist/llm/webFetch.js +64 -97
- package/dist/ui/codeHighlight.d.ts +4 -0
- package/dist/ui/codeHighlight.js +31 -0
- package/dist/ui/components/Header.d.ts +1 -1
- package/dist/ui/components/MarkdownText.d.ts +16 -2
- package/dist/ui/components/MarkdownText.js +244 -34
- package/dist/ui/components/TextInput.d.ts +8 -1
- package/dist/ui/components/TextInput.js +6 -2
- package/dist/ui/theme.d.ts +4 -3
- package/dist/ui/theme.js +5 -4
- package/dist/utils/buildInfo.d.ts +104 -0
- package/dist/utils/buildInfo.js +253 -0
- package/dist/utils/fs.d.ts +9 -0
- package/dist/utils/fs.js +87 -25
- package/dist/utils/openPath.d.ts +2 -2
- package/dist/utils/openPath.js +19 -6
- package/dist/utils/path.d.ts +2 -0
- package/dist/utils/path.js +5 -1
- package/dist/utils/utf8.d.ts +22 -0
- package/dist/utils/utf8.js +54 -0
- package/dist/utils/version.d.ts +9 -3
- package/dist/utils/version.js +28 -2
- package/package.json +24 -19
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Known provider presets derived from
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
2
|
+
* Known OpenAI-compatible provider presets derived from provider documentation and
|
|
3
|
+
* community conventions. Do not copy native-provider entries from multi-adapter clients:
|
|
4
|
+
* every standard preset here must accept OpenAI Chat Completions requests at its base URL.
|
|
5
|
+
* The OpenAI Subscription preset is the explicit exception and uses its own Codex adapter.
|
|
6
|
+
* Hosted presets carry a pre-configured base URL so users only need to supply an API key
|
|
7
|
+
* and model names. Local/keyless providers have sensible localhost defaults.
|
|
8
|
+
*
|
|
9
|
+
* `modelLimits` values are curated from models.dev (the same catalog pi and nanocoder
|
|
10
|
+
* consume; refreshed 2026-08-15). They are keyed by the exact suggested model id for
|
|
11
|
+
* THIS preset: aggregators may cap context below the origin model's capability (e.g.
|
|
12
|
+
* Together serves DeepSeek-V4-Pro at 512K vs DeepSeek's own 1M), so limits never
|
|
13
|
+
* transfer between providers. When the wizard adds a suggested model, these values are
|
|
14
|
+
* written into the provider's settings `modelLimits`, where they remain user-editable.
|
|
15
|
+
* Local providers (Ollama/llama.cpp/MLX/LM Studio) intentionally carry no limits: their
|
|
16
|
+
* effective context depends on the local server configuration, not the model.
|
|
8
17
|
*/
|
|
9
18
|
export const PROVIDER_PRESETS = [
|
|
10
19
|
// ── Cloud providers (API key required) ──────────────────────────────
|
|
@@ -16,72 +25,89 @@ export const PROVIDER_PRESETS = [
|
|
|
16
25
|
apiKeyEnvVar: 'OPENROUTER_API_KEY',
|
|
17
26
|
suggestedModels: [
|
|
18
27
|
// SOTA
|
|
19
|
-
'anthropic/claude-opus-
|
|
20
|
-
'openai/gpt-5.
|
|
21
|
-
'google/gemini-3.
|
|
22
|
-
// Fast
|
|
28
|
+
'anthropic/claude-opus-5',
|
|
29
|
+
'openai/gpt-5.6',
|
|
30
|
+
'google/gemini-3.7-flash',
|
|
23
31
|
'anthropic/claude-sonnet-5',
|
|
24
|
-
'
|
|
32
|
+
'qwen/qwen3.8-2.4t-a95b',
|
|
33
|
+
// Fast
|
|
34
|
+
'x-ai/grok-4.6',
|
|
25
35
|
'openai/gpt-5.4-mini',
|
|
26
36
|
'google/gemini-3.5-flash',
|
|
27
37
|
'deepseek/deepseek-v4-flash',
|
|
28
38
|
],
|
|
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
|
+
},
|
|
29
50
|
category: 'cloud',
|
|
30
51
|
},
|
|
31
52
|
{
|
|
32
|
-
id: 'openai',
|
|
33
|
-
name: 'OpenAI',
|
|
53
|
+
id: 'openai-api-key',
|
|
54
|
+
name: 'OpenAI API Key',
|
|
34
55
|
baseUrl: 'https://api.openai.com/v1',
|
|
35
56
|
needsApiKey: true,
|
|
36
57
|
apiKeyEnvVar: 'OPENAI_API_KEY',
|
|
37
58
|
suggestedModels: [
|
|
38
59
|
// SOTA
|
|
39
|
-
'gpt-5.
|
|
60
|
+
'gpt-5.6',
|
|
40
61
|
'gpt-5.6-sol',
|
|
41
62
|
'gpt-5.6-terra',
|
|
63
|
+
'gpt-5.5-pro',
|
|
42
64
|
'o3',
|
|
43
65
|
// Fast
|
|
66
|
+
'gpt-5.6-luna',
|
|
67
|
+
'gpt-5.5',
|
|
44
68
|
'gpt-5.4',
|
|
45
69
|
'gpt-5.4-mini',
|
|
46
|
-
'o4-mini',
|
|
47
|
-
],
|
|
48
|
-
category: 'cloud',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 'anthropic',
|
|
52
|
-
name: 'Anthropic Claude',
|
|
53
|
-
baseUrl: 'https://api.anthropic.com/v1',
|
|
54
|
-
needsApiKey: true,
|
|
55
|
-
apiKeyEnvVar: 'ANTHROPIC_API_KEY',
|
|
56
|
-
suggestedModels: [
|
|
57
|
-
// SOTA
|
|
58
|
-
'claude-opus-5',
|
|
59
|
-
'claude-opus-4-8',
|
|
60
|
-
'claude-fable-5',
|
|
61
|
-
// Fast
|
|
62
|
-
'claude-sonnet-5',
|
|
63
|
-
'claude-sonnet-4-6',
|
|
64
|
-
'claude-haiku-4-5',
|
|
65
70
|
],
|
|
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
|
+
},
|
|
66
82
|
category: 'cloud',
|
|
67
83
|
},
|
|
68
84
|
{
|
|
69
85
|
id: 'google-gemini',
|
|
70
86
|
name: 'Google Gemini',
|
|
71
|
-
baseUrl: 'https://generativelanguage.googleapis.com/v1beta',
|
|
87
|
+
baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai',
|
|
72
88
|
needsApiKey: true,
|
|
73
89
|
apiKeyHint: 'API Key (from https://aistudio.google.com/apikey)',
|
|
74
90
|
apiKeyEnvVar: 'GEMINI_API_KEY',
|
|
75
91
|
suggestedModels: [
|
|
76
92
|
// SOTA
|
|
77
93
|
'gemini-3.1-pro-preview',
|
|
78
|
-
'gemini-3.
|
|
94
|
+
'gemini-3.7-flash',
|
|
79
95
|
// Fast
|
|
80
96
|
'gemini-3.6-flash',
|
|
97
|
+
'gemini-3.5-flash',
|
|
98
|
+
'gemini-3.5-flash-lite',
|
|
81
99
|
'gemini-3.1-flash-lite',
|
|
82
|
-
'gemini-2.5-flash',
|
|
83
100
|
'gemini-2.5-pro',
|
|
84
101
|
],
|
|
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
|
+
},
|
|
85
111
|
category: 'cloud',
|
|
86
112
|
},
|
|
87
113
|
{
|
|
@@ -93,12 +119,17 @@ export const PROVIDER_PRESETS = [
|
|
|
93
119
|
suggestedModels: [
|
|
94
120
|
// SOTA
|
|
95
121
|
'mistral-large-2512',
|
|
96
|
-
'mistral-medium-
|
|
122
|
+
'mistral-medium-2604',
|
|
97
123
|
// Fast
|
|
98
124
|
'mistral-small-2603',
|
|
99
|
-
'codestral-
|
|
100
|
-
'devstral-2512',
|
|
125
|
+
'codestral-latest',
|
|
101
126
|
],
|
|
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
|
+
},
|
|
102
133
|
category: 'cloud',
|
|
103
134
|
},
|
|
104
135
|
{
|
|
@@ -113,6 +144,10 @@ export const PROVIDER_PRESETS = [
|
|
|
113
144
|
// Fast
|
|
114
145
|
'deepseek-v4-flash',
|
|
115
146
|
],
|
|
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
|
+
},
|
|
116
151
|
category: 'cloud',
|
|
117
152
|
},
|
|
118
153
|
{
|
|
@@ -123,11 +158,18 @@ export const PROVIDER_PRESETS = [
|
|
|
123
158
|
apiKeyEnvVar: 'XAI_API_KEY',
|
|
124
159
|
suggestedModels: [
|
|
125
160
|
// SOTA
|
|
161
|
+
'grok-4.6',
|
|
126
162
|
'grok-4.5',
|
|
127
163
|
'grok-4.3',
|
|
128
164
|
// Fast
|
|
129
165
|
'grok-build-0.1',
|
|
130
166
|
],
|
|
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
|
+
},
|
|
131
173
|
category: 'cloud',
|
|
132
174
|
},
|
|
133
175
|
{
|
|
@@ -140,7 +182,14 @@ export const PROVIDER_PRESETS = [
|
|
|
140
182
|
'glm-5.2',
|
|
141
183
|
'glm-5.1',
|
|
142
184
|
'glm-5-turbo',
|
|
185
|
+
'glm-4.7',
|
|
143
186
|
],
|
|
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
|
+
},
|
|
144
193
|
category: 'cloud',
|
|
145
194
|
},
|
|
146
195
|
{
|
|
@@ -150,10 +199,17 @@ export const PROVIDER_PRESETS = [
|
|
|
150
199
|
needsApiKey: true,
|
|
151
200
|
apiKeyEnvVar: 'ZAI_API_KEY',
|
|
152
201
|
suggestedModels: [
|
|
202
|
+
'glm-5.3',
|
|
153
203
|
'glm-5.2',
|
|
154
|
-
'glm-5.
|
|
155
|
-
'glm-
|
|
204
|
+
'glm-5.2-highspeed',
|
|
205
|
+
'glm-5-turbo',
|
|
156
206
|
],
|
|
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
|
+
},
|
|
157
213
|
category: 'cloud',
|
|
158
214
|
},
|
|
159
215
|
{
|
|
@@ -163,9 +219,17 @@ export const PROVIDER_PRESETS = [
|
|
|
163
219
|
needsApiKey: true,
|
|
164
220
|
apiKeyEnvVar: 'KIMI_API_KEY',
|
|
165
221
|
suggestedModels: [
|
|
166
|
-
'kimi-for-coding',
|
|
167
222
|
'k3',
|
|
223
|
+
'k3-256k',
|
|
224
|
+
'kimi-for-coding',
|
|
225
|
+
'kimi-for-coding-highspeed',
|
|
168
226
|
],
|
|
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
|
+
},
|
|
169
233
|
category: 'cloud',
|
|
170
234
|
},
|
|
171
235
|
{
|
|
@@ -182,21 +246,12 @@ export const PROVIDER_PRESETS = [
|
|
|
182
246
|
'kimi-k2.6',
|
|
183
247
|
'kimi-k2.5',
|
|
184
248
|
],
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
needsApiKey: true,
|
|
192
|
-
apiKeyEnvVar: 'MINIMAX_API_KEY',
|
|
193
|
-
suggestedModels: [
|
|
194
|
-
// SOTA
|
|
195
|
-
'MiniMax-M3',
|
|
196
|
-
// Fast
|
|
197
|
-
'MiniMax-M2.7',
|
|
198
|
-
'MiniMax-M2.7-highspeed',
|
|
199
|
-
],
|
|
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
|
+
},
|
|
200
255
|
category: 'cloud',
|
|
201
256
|
},
|
|
202
257
|
{
|
|
@@ -207,9 +262,14 @@ export const PROVIDER_PRESETS = [
|
|
|
207
262
|
apiKeyEnvVar: 'GROQ_API_KEY',
|
|
208
263
|
suggestedModels: [
|
|
209
264
|
'openai/gpt-oss-120b',
|
|
210
|
-
'qwen/qwen3-
|
|
265
|
+
'qwen/qwen3.6-27b',
|
|
211
266
|
'llama-3.3-70b-versatile',
|
|
212
267
|
],
|
|
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
|
+
},
|
|
213
273
|
category: 'cloud',
|
|
214
274
|
},
|
|
215
275
|
{
|
|
@@ -222,6 +282,10 @@ export const PROVIDER_PRESETS = [
|
|
|
222
282
|
'gpt-oss-120b',
|
|
223
283
|
'zai-glm-4.7',
|
|
224
284
|
],
|
|
285
|
+
modelLimits: {
|
|
286
|
+
'gpt-oss-120b': { contextWindowTokens: 131_072, maxOutputTokens: 40_960 },
|
|
287
|
+
'zai-glm-4.7': { contextWindowTokens: 131_072, maxOutputTokens: 40_960 },
|
|
288
|
+
},
|
|
225
289
|
category: 'cloud',
|
|
226
290
|
},
|
|
227
291
|
{
|
|
@@ -234,10 +298,20 @@ export const PROVIDER_PRESETS = [
|
|
|
234
298
|
// SOTA
|
|
235
299
|
'moonshotai/Kimi-K3',
|
|
236
300
|
'deepseek-ai/DeepSeek-V4-Pro',
|
|
301
|
+
'Qwen/Qwen3.7-Max',
|
|
237
302
|
// Fast
|
|
238
303
|
'moonshotai/Kimi-K2.7-Code',
|
|
239
304
|
'zai-org/GLM-5.2',
|
|
240
|
-
|
|
305
|
+
'MiniMaxAI/MiniMax-M3',
|
|
306
|
+
], // Router-specific caps: Together serves some models below the origin's window.
|
|
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
|
+
},
|
|
241
315
|
category: 'cloud',
|
|
242
316
|
},
|
|
243
317
|
{
|
|
@@ -253,7 +327,17 @@ export const PROVIDER_PRESETS = [
|
|
|
253
327
|
// Fast
|
|
254
328
|
'accounts/fireworks/routers/kimi-k3-fast',
|
|
255
329
|
'accounts/fireworks/models/minimax-m3',
|
|
330
|
+
'accounts/fireworks/models/deepseek-v4-flash',
|
|
331
|
+
'accounts/fireworks/models/deepseek-v4-pro-0813',
|
|
256
332
|
],
|
|
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
|
+
},
|
|
257
341
|
category: 'cloud',
|
|
258
342
|
},
|
|
259
343
|
{
|
|
@@ -267,10 +351,18 @@ export const PROVIDER_PRESETS = [
|
|
|
267
351
|
// SOTA
|
|
268
352
|
'moonshotai/Kimi-K3',
|
|
269
353
|
'zai-org/GLM-5.2',
|
|
354
|
+
'thinkingmachines/Inkling',
|
|
270
355
|
// Fast
|
|
271
356
|
'deepseek-ai/DeepSeek-V4-Flash',
|
|
272
357
|
'Qwen/Qwen3-Coder-Next',
|
|
273
358
|
],
|
|
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
|
+
},
|
|
274
366
|
category: 'cloud',
|
|
275
367
|
},
|
|
276
368
|
{
|
|
@@ -281,9 +373,16 @@ export const PROVIDER_PRESETS = [
|
|
|
281
373
|
apiKeyEnvVar: 'NVIDIA_API_KEY',
|
|
282
374
|
suggestedModels: [
|
|
283
375
|
'nvidia/nemotron-3-ultra-550b-a55b',
|
|
376
|
+
'nvidia/nemotron-3.5-lightning-30b-a3b',
|
|
284
377
|
'nvidia/nemotron-3-super-120b-a12b',
|
|
285
378
|
'minimaxai/minimax-m3',
|
|
286
379
|
],
|
|
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
|
+
},
|
|
287
386
|
category: 'cloud',
|
|
288
387
|
},
|
|
289
388
|
{
|
|
@@ -295,12 +394,24 @@ export const PROVIDER_PRESETS = [
|
|
|
295
394
|
apiKeyEnvVar: 'QWEN_TOKEN_PLAN_API_KEY',
|
|
296
395
|
suggestedModels: [
|
|
297
396
|
// SOTA
|
|
397
|
+
'qwen3.8-max',
|
|
298
398
|
'qwen3.7-max',
|
|
299
399
|
'glm-5.2',
|
|
400
|
+
'deepseek-v4-pro',
|
|
300
401
|
// Fast
|
|
301
402
|
'qwen3.7-plus',
|
|
302
403
|
'kimi-k2.7-code',
|
|
404
|
+
'deepseek-v4-flash',
|
|
303
405
|
],
|
|
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
|
+
},
|
|
304
415
|
category: 'cloud',
|
|
305
416
|
},
|
|
306
417
|
{
|
|
@@ -311,13 +422,24 @@ export const PROVIDER_PRESETS = [
|
|
|
311
422
|
apiKeyEnvVar: 'OPENCODE_API_KEY',
|
|
312
423
|
suggestedModels: [
|
|
313
424
|
// SOTA
|
|
314
|
-
'claude-opus-
|
|
425
|
+
'claude-opus-5',
|
|
315
426
|
'gpt-5.5',
|
|
427
|
+
'claude-opus-4-8',
|
|
316
428
|
// Fast
|
|
317
429
|
'claude-sonnet-4-6',
|
|
318
430
|
'kimi-k3',
|
|
431
|
+
'gemini-3.7-flash',
|
|
319
432
|
'minimax-m3',
|
|
320
433
|
],
|
|
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
|
+
},
|
|
321
443
|
category: 'cloud',
|
|
322
444
|
},
|
|
323
445
|
{
|
|
@@ -327,8 +449,17 @@ export const PROVIDER_PRESETS = [
|
|
|
327
449
|
needsApiKey: true,
|
|
328
450
|
apiKeyHint: 'API Key (from https://app.requesty.ai/api-keys)',
|
|
329
451
|
suggestedModels: [
|
|
330
|
-
'
|
|
452
|
+
'claude-opus-4-8',
|
|
453
|
+
'gpt-5.5@eu',
|
|
454
|
+
'gemini-3.5-flash',
|
|
455
|
+
'kimi-k3',
|
|
331
456
|
],
|
|
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
|
+
},
|
|
332
463
|
category: 'cloud',
|
|
333
464
|
},
|
|
334
465
|
{
|
|
@@ -351,71 +482,188 @@ export const PROVIDER_PRESETS = [
|
|
|
351
482
|
suggestedModels: [
|
|
352
483
|
'gpt-5.6-sol',
|
|
353
484
|
],
|
|
485
|
+
modelLimits: {
|
|
486
|
+
// No models.dev entry for Atlas; the gpt-5.6 family reports an identical
|
|
487
|
+
// window across every catalogued provider that serves it.
|
|
488
|
+
'gpt-5.6-sol': { contextWindowTokens: 1_050_000, maxOutputTokens: 128_000 },
|
|
489
|
+
},
|
|
354
490
|
category: 'cloud',
|
|
355
491
|
},
|
|
356
492
|
{
|
|
357
|
-
id: '
|
|
358
|
-
name: '
|
|
359
|
-
baseUrl: 'https://
|
|
360
|
-
needsApiKey:
|
|
361
|
-
|
|
362
|
-
apiKeyEnvVar: 'GITHUB_TOKEN',
|
|
493
|
+
id: 'openai-subscription',
|
|
494
|
+
name: 'OpenAI Subscription',
|
|
495
|
+
baseUrl: 'https://chatgpt.com/backend-api/codex',
|
|
496
|
+
needsApiKey: false,
|
|
497
|
+
auth: 'chatgpt-oauth',
|
|
363
498
|
suggestedModels: [
|
|
499
|
+
'gpt-5.6-sol',
|
|
500
|
+
'gpt-5.6-terra',
|
|
501
|
+
'gpt-5.6-luna',
|
|
502
|
+
'gpt-5.5',
|
|
364
503
|
'gpt-5.4',
|
|
365
504
|
'gpt-5.4-mini',
|
|
366
|
-
'
|
|
367
|
-
'gemini-3.1-pro',
|
|
505
|
+
'gpt-5.3-codex-spark',
|
|
368
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 },
|
|
514
|
+
// The spark variant is the lightweight Codex line: 128K context, 32K output.
|
|
515
|
+
'gpt-5.3-codex-spark': { contextWindowTokens: 128_000, maxOutputTokens: 32_000 },
|
|
516
|
+
},
|
|
369
517
|
category: 'cloud',
|
|
370
518
|
},
|
|
371
519
|
{
|
|
372
|
-
id: '
|
|
373
|
-
name: '
|
|
374
|
-
baseUrl: 'https://api.
|
|
520
|
+
id: 'poe',
|
|
521
|
+
name: 'Poe',
|
|
522
|
+
baseUrl: 'https://api.poe.com/v1',
|
|
375
523
|
needsApiKey: true,
|
|
376
|
-
apiKeyHint: '
|
|
377
|
-
apiKeyEnvVar: 'COPILOT_GITHUB_TOKEN',
|
|
524
|
+
apiKeyHint: 'API Key (from poe.com/api_key)',
|
|
378
525
|
suggestedModels: [
|
|
379
|
-
|
|
380
|
-
'
|
|
381
|
-
'gpt-5.
|
|
382
|
-
'
|
|
383
|
-
|
|
384
|
-
'
|
|
526
|
+
// SOTA
|
|
527
|
+
'anthropic/claude-opus-4.8',
|
|
528
|
+
'openai/gpt-5.5',
|
|
529
|
+
'google/gemini-3.5-flash',
|
|
530
|
+
// Fast
|
|
531
|
+
'openai/gpt-5.4-mini',
|
|
532
|
+
'anthropic/claude-sonnet-4.6',
|
|
533
|
+
'novita/kimi-k2.5',
|
|
385
534
|
],
|
|
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
|
+
},
|
|
386
545
|
category: 'cloud',
|
|
387
546
|
},
|
|
388
547
|
{
|
|
389
|
-
id: '
|
|
390
|
-
name: '
|
|
391
|
-
baseUrl: 'https://
|
|
548
|
+
id: 'kilo',
|
|
549
|
+
name: 'Kilo Gateway',
|
|
550
|
+
baseUrl: 'https://api.kilo.ai/api/gateway',
|
|
392
551
|
needsApiKey: true,
|
|
393
|
-
|
|
552
|
+
apiKeyEnvVar: 'KILO_API_KEY',
|
|
394
553
|
suggestedModels: [
|
|
395
|
-
|
|
396
|
-
'
|
|
397
|
-
'gpt-5.
|
|
398
|
-
'
|
|
554
|
+
// SOTA
|
|
555
|
+
'anthropic/claude-opus-5',
|
|
556
|
+
'openai/gpt-5.6-sol',
|
|
557
|
+
'moonshotai/kimi-k3',
|
|
558
|
+
'z-ai/glm-5.2',
|
|
559
|
+
// Fast
|
|
560
|
+
'google/gemini-3.7-flash',
|
|
561
|
+
'x-ai/grok-4.6',
|
|
562
|
+
'deepseek/deepseek-v4-pro-0813',
|
|
563
|
+
'kilo-auto/frontier',
|
|
399
564
|
],
|
|
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
|
+
},
|
|
400
575
|
category: 'cloud',
|
|
401
576
|
},
|
|
402
577
|
{
|
|
403
|
-
id: '
|
|
404
|
-
name: '
|
|
405
|
-
baseUrl: 'https://api.
|
|
578
|
+
id: 'novita',
|
|
579
|
+
name: 'Novita AI',
|
|
580
|
+
baseUrl: 'https://api.novita.ai/openai',
|
|
406
581
|
needsApiKey: true,
|
|
407
|
-
|
|
582
|
+
apiKeyEnvVar: 'NOVITA_API_KEY',
|
|
408
583
|
suggestedModels: [
|
|
409
584
|
// SOTA
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
585
|
+
'moonshotai/kimi-k3',
|
|
586
|
+
'zai-org/glm-5.2',
|
|
587
|
+
'qwen/qwen3.7-max',
|
|
588
|
+
'deepseek/deepseek-v4-pro',
|
|
414
589
|
// Fast
|
|
415
|
-
'
|
|
416
|
-
'claude-sonnet-4.6',
|
|
417
|
-
'kimi-k2.5',
|
|
590
|
+
'moonshotai/kimi-k2.7-code',
|
|
418
591
|
],
|
|
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
|
+
category: 'cloud',
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
id: 'deep-infra',
|
|
603
|
+
name: 'Deep Infra',
|
|
604
|
+
baseUrl: 'https://api.deepinfra.com/v1/openai',
|
|
605
|
+
needsApiKey: true,
|
|
606
|
+
apiKeyEnvVar: 'DEEPINFRA_API_KEY',
|
|
607
|
+
suggestedModels: [
|
|
608
|
+
// SOTA
|
|
609
|
+
'moonshotai/Kimi-K3',
|
|
610
|
+
'thinkingmachines/Inkling',
|
|
611
|
+
// Fast
|
|
612
|
+
'deepseek-ai/DeepSeek-V4-Flash-0731',
|
|
613
|
+
'MiniMaxAI/MiniMax-M3',
|
|
614
|
+
'meta-llama/Llama-3.3-70B-Instruct-Turbo',
|
|
615
|
+
],
|
|
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
|
+
category: 'cloud',
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
id: 'siliconflow',
|
|
627
|
+
name: 'SiliconFlow',
|
|
628
|
+
baseUrl: 'https://api.siliconflow.com/v1',
|
|
629
|
+
needsApiKey: true,
|
|
630
|
+
apiKeyEnvVar: 'SILICONFLOW_API_KEY',
|
|
631
|
+
suggestedModels: [
|
|
632
|
+
// SOTA
|
|
633
|
+
'zai-org/GLM-5.2',
|
|
634
|
+
'deepseek-ai/DeepSeek-V4-Pro',
|
|
635
|
+
// Fast
|
|
636
|
+
'Qwen/Qwen3-Coder-480B-A35B-Instruct',
|
|
637
|
+
'moonshotai/Kimi-K2.6',
|
|
638
|
+
],
|
|
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
|
+
category: 'cloud',
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
id: 'nebius',
|
|
649
|
+
name: 'Nebius AI Studio',
|
|
650
|
+
baseUrl: 'https://api.studio.nebius.com/v1',
|
|
651
|
+
needsApiKey: true,
|
|
652
|
+
apiKeyEnvVar: 'NEBIUS_API_KEY',
|
|
653
|
+
suggestedModels: [
|
|
654
|
+
// SOTA
|
|
655
|
+
'deepseek-ai/DeepSeek-V4-Pro',
|
|
656
|
+
'moonshotai/Kimi-K3',
|
|
657
|
+
// Fast
|
|
658
|
+
'zai-org/GLM-5.2',
|
|
659
|
+
'nvidia/nemotron-3-super-120b-a12b',
|
|
660
|
+
],
|
|
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
|
+
},
|
|
419
667
|
category: 'cloud',
|
|
420
668
|
},
|
|
421
669
|
// ── Local providers (no API key) ────────────────────────────────────
|
|
@@ -455,5 +703,28 @@ export const PROVIDER_PRESETS = [
|
|
|
455
703
|
},
|
|
456
704
|
];
|
|
457
705
|
export function findPreset(id) {
|
|
458
|
-
|
|
706
|
+
// Accept the former picker ids without keeping duplicate preset records.
|
|
707
|
+
const canonicalId = id === 'openai' ? 'openai-api-key' : id === 'chatgpt-codex' ? 'openai-subscription' : id;
|
|
708
|
+
return PROVIDER_PRESETS.find(preset => preset.id === canonicalId);
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Limits for models a wizard flow is adding to a provider, matched by the
|
|
712
|
+
* provider's base URL or its name (a provider created from a preset keeps the
|
|
713
|
+
* preset's name unless the user renamed it). Returns only entries the caller
|
|
714
|
+
* should merge into the provider's settings `modelLimits`; user-configured
|
|
715
|
+
* limits always win because callers merge without overwriting existing keys.
|
|
716
|
+
*/
|
|
717
|
+
export function presetModelLimitsForModels(provider, models) {
|
|
718
|
+
const preset = PROVIDER_PRESETS.find(candidate => candidate.modelLimits
|
|
719
|
+
&& ((provider.url && candidate.baseUrl === provider.url)
|
|
720
|
+
|| (provider.name && (candidate.name === provider.name || candidate.id === provider.name))));
|
|
721
|
+
if (!preset?.modelLimits)
|
|
722
|
+
return {};
|
|
723
|
+
const out = {};
|
|
724
|
+
for (const model of models) {
|
|
725
|
+
const limits = preset.modelLimits[model];
|
|
726
|
+
if (limits)
|
|
727
|
+
out[model] = limits;
|
|
728
|
+
}
|
|
729
|
+
return out;
|
|
459
730
|
}
|