@denizokcu/haze 0.9.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 +133 -17
- package/README.md +164 -68
- 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/chatMetrics.d.ts +17 -1
- package/dist/cli/chat/chatMetrics.js +22 -5
- package/dist/cli/chat/contextReport.d.ts +11 -0
- package/dist/cli/chat/contextReport.js +46 -0
- package/dist/cli/chat/fileMentionSuggestions.d.ts +29 -0
- package/dist/cli/chat/fileMentionSuggestions.js +92 -0
- package/dist/cli/chat/inputSuggestions.d.ts +5 -0
- package/dist/cli/chat/inputSuggestions.js +17 -3
- 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 +67 -0
- package/dist/cli/chat/sessionLifecycle.js +205 -0
- package/dist/cli/chat/sessionRecorder.js +80 -14
- package/dist/cli/chat/startupInfo.js +11 -4
- package/dist/cli/chat/tips.d.ts +21 -0
- package/dist/cli/chat/tips.js +43 -0
- package/dist/cli/chat/wizardDispatch.d.ts +64 -0
- package/dist/cli/chat/wizardDispatch.js +744 -0
- package/dist/cli/commands/chat.d.ts +6 -0
- package/dist/cli/commands/chat.js +373 -790
- package/dist/cli/commands/chatModes.d.ts +1 -1
- package/dist/cli/commands/chatModes.js +7 -2
- package/dist/cli/commands/commandHelp.js +5 -3
- package/dist/cli/commands/commands.d.ts +5 -2
- package/dist/cli/commands/commands.js +22 -18
- package/dist/cli/commands/doctor.d.ts +19 -0
- package/dist/cli/commands/doctor.js +76 -0
- package/dist/cli/commands/fleetCommand.d.ts +14 -0
- package/dist/cli/commands/fleetCommand.js +46 -0
- package/dist/cli/commands/formatters.d.ts +5 -0
- package/dist/cli/commands/formatters.js +35 -6
- package/dist/cli/commands/logsCommand.js +1 -7
- package/dist/cli/commands/modelCommand.js +1 -1
- package/dist/cli/commands/ndjsonSink.d.ts +23 -0
- package/dist/cli/commands/ndjsonSink.js +38 -0
- package/dist/cli/commands/providerWizard.d.ts +10 -2
- package/dist/cli/commands/providerWizard.js +50 -4
- package/dist/cli/commands/runCommand.d.ts +4 -0
- package/dist/cli/commands/runCommand.js +142 -16
- package/dist/cli/commands/sessionPicker.d.ts +9 -0
- package/dist/cli/commands/sessionPicker.js +29 -0
- package/dist/cli/commands/settingsSummary.js +6 -4
- package/dist/cli/commands/skillConfirmRemove.js +4 -3
- package/dist/cli/commands/skillWizard.d.ts +2 -0
- package/dist/cli/commands/skillWizard.js +16 -6
- 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/idleTimer.d.ts +26 -0
- package/dist/cli/commands/streaming/idleTimer.js +24 -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 +31 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.js +50 -2
- 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/turnRuntime.js +6 -4
- package/dist/cli/commands/streaming.d.ts +82 -3
- package/dist/cli/commands/streaming.js +528 -91
- package/dist/cli/commands/wizardActions.d.ts +7 -0
- package/dist/cli/commands/wizardActions.js +7 -0
- package/dist/cli/commands/wizardPrompts.js +7 -1
- package/dist/cli/commands/wizardSuggestions.d.ts +8 -0
- package/dist/cli/commands/wizardSuggestions.js +64 -14
- package/dist/cli/commands/wizardTransition.d.ts +4 -0
- package/dist/cli/commands/wizardTransition.js +1 -2
- package/dist/cli/index.js +82 -22
- package/dist/cli/terminalTitle.d.ts +6 -0
- package/dist/cli/terminalTitle.js +36 -0
- package/dist/config/inputHistory.d.ts +3 -3
- package/dist/config/inputHistory.js +12 -18
- package/dist/config/modelDiscovery.d.ts +71 -0
- package/dist/config/modelDiscovery.js +214 -0
- 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 +49 -5
- package/dist/config/providerPresets.js +573 -73
- package/dist/config/providers.d.ts +2 -0
- package/dist/config/providers.js +9 -0
- package/dist/config/settings.d.ts +58 -0
- package/dist/config/settings.js +38 -1
- package/dist/config/skillSettings.d.ts +6 -13
- package/dist/config/skillSettings.js +20 -19
- package/dist/core/agent/budgets.d.ts +36 -0
- package/dist/core/agent/budgets.js +44 -0
- package/dist/core/agent/compaction.d.ts +38 -0
- package/dist/core/agent/compaction.js +108 -19
- package/dist/core/agent/completionController.d.ts +230 -0
- package/dist/core/agent/completionController.js +287 -0
- package/dist/core/agent/contextBudget.d.ts +46 -0
- package/dist/core/agent/contextBudget.js +89 -7
- package/dist/core/agent/errors.js +6 -2
- package/dist/core/agent/events.d.ts +86 -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 +13 -0
- package/dist/core/agent/toolOutputStore.js +27 -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 +76 -1
- package/dist/core/agent/workState.js +120 -13
- package/dist/core/attachments/imageAttachments.d.ts +90 -0
- package/dist/core/attachments/imageAttachments.js +245 -0
- package/dist/core/attachments/readBlessings.d.ts +37 -0
- package/dist/core/attachments/readBlessings.js +79 -0
- 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/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -13
- package/dist/core/io/boundedRead.js +76 -29
- package/dist/core/limits/byteBudgets.d.ts +7 -0
- package/dist/core/limits/byteBudgets.js +7 -0
- package/dist/core/limits/textBudgets.d.ts +25 -0
- package/dist/core/limits/textBudgets.js +25 -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.d.ts +35 -0
- package/dist/core/process/backgroundRegistry.js +195 -0
- package/dist/core/process/runBoundedProcess.d.ts +9 -0
- package/dist/core/process/runBoundedProcess.js +74 -29
- package/dist/core/safety/missingExecutable.d.ts +42 -0
- package/dist/core/safety/missingExecutable.js +77 -0
- package/dist/core/safety/urlGuard.d.ts +2 -1
- package/dist/core/safety/urlGuard.js +3 -2
- package/dist/core/session/sessionSlimming.js +47 -4
- package/dist/core/session/sessionStore.d.ts +74 -0
- package/dist/core/session/sessionStore.js +268 -18
- package/dist/core/subagent/contracts.d.ts +120 -0
- package/dist/core/subagent/contracts.js +55 -0
- package/dist/core/subagent/executionProfiles.d.ts +28 -0
- package/dist/core/subagent/executionProfiles.js +45 -0
- package/dist/core/subagent/subagentCoordinator.d.ts +78 -0
- package/dist/core/subagent/subagentCoordinator.js +164 -0
- package/dist/core/subagent/subagentRunner.d.ts +211 -145
- package/dist/core/subagent/subagentRunner.js +208 -98
- package/dist/core/subagent/workspaceMutationPolicy.d.ts +11 -0
- package/dist/core/subagent/workspaceMutationPolicy.js +52 -0
- package/dist/core/tasks/taskStorage.js +12 -1
- package/dist/llm/client.d.ts +36 -29
- package/dist/llm/client.js +102 -33
- package/dist/llm/hazeTools.d.ts +2559 -150
- package/dist/llm/hazeTools.js +119 -31
- package/dist/llm/lsp.d.ts +26 -4
- package/dist/llm/lsp.js +90 -14
- 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 +25 -1
- package/dist/llm/requestContext.js +51 -8
- package/dist/llm/systemPrompt.d.ts +15 -1
- package/dist/llm/systemPrompt.js +24 -8
- package/dist/llm/toolResultTypes.d.ts +8 -1
- package/dist/llm/tools/bashTool.d.ts +906 -32
- package/dist/llm/tools/bashTool.js +30 -4
- 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 +42 -26
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +6 -4
- package/dist/llm/tools/fileToolShared.js +18 -23
- package/dist/llm/tools/gitIgnore.d.ts +49 -0
- package/dist/llm/tools/gitIgnore.js +129 -0
- package/dist/llm/tools/grepRunner.d.ts +5 -0
- package/dist/llm/tools/grepRunner.js +52 -71
- package/dist/llm/tools/outputCap.d.ts +2 -6
- package/dist/llm/tools/outputCap.js +2 -6
- package/dist/llm/tools/processTool.d.ts +1077 -0
- package/dist/llm/tools/processTool.js +41 -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 +9 -1
- package/dist/llm/tools/toolContext.js +83 -43
- package/dist/llm/tools/workspaceFile.d.ts +9 -1
- package/dist/llm/tools/workspaceFile.js +33 -4
- package/dist/llm/webFetch.d.ts +17 -0
- package/dist/llm/webFetch.js +66 -86
- package/dist/llm/workerContext.d.ts +18 -0
- package/dist/llm/workerContext.js +55 -0
- package/dist/skills/SkillLoader.d.ts +2 -2
- package/dist/skills/SkillRegistry.d.ts +3 -2
- package/dist/skills/SkillRegistry.js +43 -13
- package/dist/skills/builder/SkillBuilder.d.ts +3 -0
- package/dist/skills/builder/SkillBuilder.js +23 -5
- package/dist/skills/skillTools.js +11 -4
- package/dist/skills/types.d.ts +6 -1
- 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 +12 -2
- package/dist/ui/components/TextInput.js +80 -8
- 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/format.d.ts +2 -0
- package/dist/utils/format.js +8 -0
- package/dist/utils/fs.d.ts +9 -1
- package/dist/utils/fs.js +87 -29
- package/dist/utils/openPath.d.ts +2 -0
- package/dist/utils/openPath.js +22 -0
- 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,7 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Known provider presets derived from
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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.
|
|
5
17
|
*/
|
|
6
18
|
export const PROVIDER_PRESETS = [
|
|
7
19
|
// ── Cloud providers (API key required) ──────────────────────────────
|
|
@@ -10,65 +22,92 @@ export const PROVIDER_PRESETS = [
|
|
|
10
22
|
name: 'OpenRouter',
|
|
11
23
|
baseUrl: 'https://openrouter.ai/api/v1',
|
|
12
24
|
needsApiKey: true,
|
|
25
|
+
apiKeyEnvVar: 'OPENROUTER_API_KEY',
|
|
13
26
|
suggestedModels: [
|
|
14
27
|
// SOTA
|
|
15
|
-
'anthropic/claude-opus-
|
|
16
|
-
'openai/gpt-5.
|
|
17
|
-
'google/gemini-3.
|
|
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',
|
|
18
33
|
// Fast
|
|
19
|
-
'
|
|
34
|
+
'x-ai/grok-4.6',
|
|
20
35
|
'openai/gpt-5.4-mini',
|
|
21
36
|
'google/gemini-3.5-flash',
|
|
22
37
|
'deepseek/deepseek-v4-flash',
|
|
23
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
|
+
},
|
|
24
50
|
category: 'cloud',
|
|
25
51
|
},
|
|
26
52
|
{
|
|
27
|
-
id: 'openai',
|
|
28
|
-
name: 'OpenAI',
|
|
53
|
+
id: 'openai-api-key',
|
|
54
|
+
name: 'OpenAI API Key',
|
|
29
55
|
baseUrl: 'https://api.openai.com/v1',
|
|
30
56
|
needsApiKey: true,
|
|
57
|
+
apiKeyEnvVar: 'OPENAI_API_KEY',
|
|
31
58
|
suggestedModels: [
|
|
32
59
|
// SOTA
|
|
33
|
-
'gpt-5.
|
|
60
|
+
'gpt-5.6',
|
|
61
|
+
'gpt-5.6-sol',
|
|
62
|
+
'gpt-5.6-terra',
|
|
63
|
+
'gpt-5.5-pro',
|
|
34
64
|
'o3',
|
|
35
65
|
// Fast
|
|
66
|
+
'gpt-5.6-luna',
|
|
67
|
+
'gpt-5.5',
|
|
36
68
|
'gpt-5.4',
|
|
37
69
|
'gpt-5.4-mini',
|
|
38
|
-
'o4-mini',
|
|
39
|
-
],
|
|
40
|
-
category: 'cloud',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: 'anthropic',
|
|
44
|
-
name: 'Anthropic Claude',
|
|
45
|
-
baseUrl: 'https://api.anthropic.com/v1',
|
|
46
|
-
needsApiKey: true,
|
|
47
|
-
suggestedModels: [
|
|
48
|
-
// SOTA
|
|
49
|
-
'claude-opus-4-8',
|
|
50
|
-
'claude-fable-5',
|
|
51
|
-
// Fast
|
|
52
|
-
'claude-sonnet-4-6',
|
|
53
|
-
'claude-haiku-4-5',
|
|
54
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
|
+
},
|
|
55
82
|
category: 'cloud',
|
|
56
83
|
},
|
|
57
84
|
{
|
|
58
85
|
id: 'google-gemini',
|
|
59
86
|
name: 'Google Gemini',
|
|
60
|
-
baseUrl: 'https://generativelanguage.googleapis.com/v1beta',
|
|
87
|
+
baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai',
|
|
61
88
|
needsApiKey: true,
|
|
62
89
|
apiKeyHint: 'API Key (from https://aistudio.google.com/apikey)',
|
|
90
|
+
apiKeyEnvVar: 'GEMINI_API_KEY',
|
|
63
91
|
suggestedModels: [
|
|
64
92
|
// SOTA
|
|
65
|
-
'gemini-3.
|
|
66
|
-
'gemini-3.
|
|
93
|
+
'gemini-3.1-pro-preview',
|
|
94
|
+
'gemini-3.7-flash',
|
|
67
95
|
// Fast
|
|
96
|
+
'gemini-3.6-flash',
|
|
97
|
+
'gemini-3.5-flash',
|
|
98
|
+
'gemini-3.5-flash-lite',
|
|
68
99
|
'gemini-3.1-flash-lite',
|
|
69
|
-
'gemini-2.5-flash',
|
|
70
100
|
'gemini-2.5-pro',
|
|
71
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
|
+
},
|
|
72
111
|
category: 'cloud',
|
|
73
112
|
},
|
|
74
113
|
{
|
|
@@ -76,14 +115,61 @@ export const PROVIDER_PRESETS = [
|
|
|
76
115
|
name: 'Mistral AI',
|
|
77
116
|
baseUrl: 'https://api.mistral.ai/v1',
|
|
78
117
|
needsApiKey: true,
|
|
118
|
+
apiKeyEnvVar: 'MISTRAL_API_KEY',
|
|
79
119
|
suggestedModels: [
|
|
80
120
|
// SOTA
|
|
81
121
|
'mistral-large-2512',
|
|
82
|
-
'mistral-medium-
|
|
122
|
+
'mistral-medium-2604',
|
|
83
123
|
// Fast
|
|
84
124
|
'mistral-small-2603',
|
|
85
|
-
'codestral-
|
|
125
|
+
'codestral-latest',
|
|
86
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
|
+
},
|
|
133
|
+
category: 'cloud',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'deepseek',
|
|
137
|
+
name: 'DeepSeek',
|
|
138
|
+
baseUrl: 'https://api.deepseek.com/v1',
|
|
139
|
+
needsApiKey: true,
|
|
140
|
+
apiKeyEnvVar: 'DEEPSEEK_API_KEY',
|
|
141
|
+
suggestedModels: [
|
|
142
|
+
// SOTA
|
|
143
|
+
'deepseek-v4-pro',
|
|
144
|
+
// Fast
|
|
145
|
+
'deepseek-v4-flash',
|
|
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
|
+
},
|
|
151
|
+
category: 'cloud',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'xai',
|
|
155
|
+
name: 'xAI Grok',
|
|
156
|
+
baseUrl: 'https://api.x.ai/v1',
|
|
157
|
+
needsApiKey: true,
|
|
158
|
+
apiKeyEnvVar: 'XAI_API_KEY',
|
|
159
|
+
suggestedModels: [
|
|
160
|
+
// SOTA
|
|
161
|
+
'grok-4.6',
|
|
162
|
+
'grok-4.5',
|
|
163
|
+
'grok-4.3',
|
|
164
|
+
// Fast
|
|
165
|
+
'grok-build-0.1',
|
|
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
|
+
},
|
|
87
173
|
category: 'cloud',
|
|
88
174
|
},
|
|
89
175
|
{
|
|
@@ -91,10 +177,19 @@ export const PROVIDER_PRESETS = [
|
|
|
91
177
|
name: 'Z.ai',
|
|
92
178
|
baseUrl: 'https://api.z.ai/api/paas/v4/',
|
|
93
179
|
needsApiKey: true,
|
|
180
|
+
apiKeyEnvVar: 'ZAI_API_KEY',
|
|
94
181
|
suggestedModels: [
|
|
182
|
+
'glm-5.2',
|
|
95
183
|
'glm-5.1',
|
|
96
|
-
'glm-5
|
|
184
|
+
'glm-5-turbo',
|
|
185
|
+
'glm-4.7',
|
|
97
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
|
+
},
|
|
98
193
|
category: 'cloud',
|
|
99
194
|
},
|
|
100
195
|
{
|
|
@@ -102,73 +197,323 @@ export const PROVIDER_PRESETS = [
|
|
|
102
197
|
name: 'Z.ai Coding Subscription',
|
|
103
198
|
baseUrl: 'https://api.z.ai/api/coding/paas/v4/',
|
|
104
199
|
needsApiKey: true,
|
|
200
|
+
apiKeyEnvVar: 'ZAI_API_KEY',
|
|
105
201
|
suggestedModels: [
|
|
106
|
-
'glm-5.
|
|
107
|
-
'glm-5.
|
|
202
|
+
'glm-5.3',
|
|
203
|
+
'glm-5.2',
|
|
204
|
+
'glm-5.2-highspeed',
|
|
205
|
+
'glm-5-turbo',
|
|
108
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
|
+
},
|
|
109
213
|
category: 'cloud',
|
|
110
214
|
},
|
|
111
215
|
{
|
|
112
|
-
id: '
|
|
113
|
-
name: '
|
|
114
|
-
baseUrl: 'https://
|
|
216
|
+
id: 'kimi-code',
|
|
217
|
+
name: 'Kimi Code',
|
|
218
|
+
baseUrl: 'https://api.kimi.com/coding/v1',
|
|
115
219
|
needsApiKey: true,
|
|
116
|
-
|
|
220
|
+
apiKeyEnvVar: 'KIMI_API_KEY',
|
|
117
221
|
suggestedModels: [
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
222
|
+
'k3',
|
|
223
|
+
'k3-256k',
|
|
224
|
+
'kimi-for-coding',
|
|
225
|
+
'kimi-for-coding-highspeed',
|
|
122
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
|
+
},
|
|
123
233
|
category: 'cloud',
|
|
124
234
|
},
|
|
125
235
|
{
|
|
126
|
-
id: '
|
|
127
|
-
name: '
|
|
128
|
-
baseUrl: 'https://api.
|
|
236
|
+
id: 'moonshot',
|
|
237
|
+
name: 'Moonshot AI (Kimi API)',
|
|
238
|
+
baseUrl: 'https://api.moonshot.ai/v1',
|
|
129
239
|
needsApiKey: true,
|
|
130
|
-
|
|
240
|
+
apiKeyEnvVar: 'MOONSHOT_API_KEY',
|
|
131
241
|
suggestedModels: [
|
|
132
|
-
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
|
|
242
|
+
// SOTA
|
|
243
|
+
'kimi-k3',
|
|
244
|
+
'kimi-k2.7-code',
|
|
245
|
+
// Fast
|
|
246
|
+
'kimi-k2.6',
|
|
247
|
+
'kimi-k2.5',
|
|
136
248
|
],
|
|
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
|
+
},
|
|
137
255
|
category: 'cloud',
|
|
138
256
|
},
|
|
139
257
|
{
|
|
140
|
-
id: '
|
|
141
|
-
name: '
|
|
142
|
-
baseUrl: 'https://
|
|
258
|
+
id: 'groq',
|
|
259
|
+
name: 'Groq',
|
|
260
|
+
baseUrl: 'https://api.groq.com/openai/v1',
|
|
143
261
|
needsApiKey: true,
|
|
144
|
-
|
|
262
|
+
apiKeyEnvVar: 'GROQ_API_KEY',
|
|
145
263
|
suggestedModels: [
|
|
146
|
-
'gpt-
|
|
147
|
-
'
|
|
264
|
+
'openai/gpt-oss-120b',
|
|
265
|
+
'qwen/qwen3.6-27b',
|
|
266
|
+
'llama-3.3-70b-versatile',
|
|
148
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
|
+
},
|
|
149
273
|
category: 'cloud',
|
|
150
274
|
},
|
|
151
275
|
{
|
|
152
|
-
id: '
|
|
153
|
-
name: '
|
|
154
|
-
baseUrl: 'https://api.
|
|
276
|
+
id: 'cerebras',
|
|
277
|
+
name: 'Cerebras',
|
|
278
|
+
baseUrl: 'https://api.cerebras.ai/v1',
|
|
155
279
|
needsApiKey: true,
|
|
280
|
+
apiKeyEnvVar: 'CEREBRAS_API_KEY',
|
|
156
281
|
suggestedModels: [
|
|
157
|
-
'
|
|
282
|
+
'gpt-oss-120b',
|
|
283
|
+
'zai-glm-4.7',
|
|
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
|
+
},
|
|
289
|
+
category: 'cloud',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: 'together',
|
|
293
|
+
name: 'Together AI',
|
|
294
|
+
baseUrl: 'https://api.together.ai/v1',
|
|
295
|
+
needsApiKey: true,
|
|
296
|
+
apiKeyEnvVar: 'TOGETHER_API_KEY',
|
|
297
|
+
suggestedModels: [
|
|
298
|
+
// SOTA
|
|
299
|
+
'moonshotai/Kimi-K3',
|
|
300
|
+
'deepseek-ai/DeepSeek-V4-Pro',
|
|
301
|
+
'Qwen/Qwen3.7-Max',
|
|
302
|
+
// Fast
|
|
303
|
+
'moonshotai/Kimi-K2.7-Code',
|
|
304
|
+
'zai-org/GLM-5.2',
|
|
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
|
+
},
|
|
315
|
+
category: 'cloud',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
id: 'fireworks',
|
|
319
|
+
name: 'Fireworks AI',
|
|
320
|
+
baseUrl: 'https://api.fireworks.ai/inference/v1',
|
|
321
|
+
needsApiKey: true,
|
|
322
|
+
apiKeyEnvVar: 'FIREWORKS_API_KEY',
|
|
323
|
+
suggestedModels: [
|
|
324
|
+
// SOTA
|
|
325
|
+
'accounts/fireworks/models/kimi-k3',
|
|
326
|
+
'accounts/fireworks/models/glm-5p2',
|
|
327
|
+
// 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',
|
|
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
|
+
},
|
|
341
|
+
category: 'cloud',
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: 'huggingface',
|
|
345
|
+
name: 'Hugging Face Router',
|
|
346
|
+
baseUrl: 'https://router.huggingface.co/v1',
|
|
347
|
+
needsApiKey: true,
|
|
348
|
+
apiKeyHint: 'Hugging Face token (from https://huggingface.co/settings/tokens)',
|
|
349
|
+
apiKeyEnvVar: 'HF_TOKEN',
|
|
350
|
+
suggestedModels: [
|
|
351
|
+
// SOTA
|
|
352
|
+
'moonshotai/Kimi-K3',
|
|
353
|
+
'zai-org/GLM-5.2',
|
|
354
|
+
'thinkingmachines/Inkling',
|
|
355
|
+
// Fast
|
|
356
|
+
'deepseek-ai/DeepSeek-V4-Flash',
|
|
357
|
+
'Qwen/Qwen3-Coder-Next',
|
|
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
|
+
},
|
|
366
|
+
category: 'cloud',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
id: 'nvidia',
|
|
370
|
+
name: 'NVIDIA NIM',
|
|
371
|
+
baseUrl: 'https://integrate.api.nvidia.com/v1',
|
|
372
|
+
needsApiKey: true,
|
|
373
|
+
apiKeyEnvVar: 'NVIDIA_API_KEY',
|
|
374
|
+
suggestedModels: [
|
|
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',
|
|
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
|
+
},
|
|
386
|
+
category: 'cloud',
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
id: 'qwen-token-plan',
|
|
390
|
+
name: 'Qwen Token Plan',
|
|
391
|
+
baseUrl: 'https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1',
|
|
392
|
+
needsApiKey: true,
|
|
393
|
+
apiKeyHint: 'Alibaba Cloud Model Studio API key with a token plan',
|
|
394
|
+
apiKeyEnvVar: 'QWEN_TOKEN_PLAN_API_KEY',
|
|
395
|
+
suggestedModels: [
|
|
396
|
+
// SOTA
|
|
397
|
+
'qwen3.8-max',
|
|
398
|
+
'qwen3.7-max',
|
|
399
|
+
'glm-5.2',
|
|
400
|
+
'deepseek-v4-pro',
|
|
401
|
+
// Fast
|
|
402
|
+
'qwen3.7-plus',
|
|
403
|
+
'kimi-k2.7-code',
|
|
404
|
+
'deepseek-v4-flash',
|
|
158
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
|
+
},
|
|
159
415
|
category: 'cloud',
|
|
160
416
|
},
|
|
161
417
|
{
|
|
162
|
-
id: '
|
|
163
|
-
name: '
|
|
164
|
-
baseUrl: 'https://
|
|
418
|
+
id: 'opencode-zen',
|
|
419
|
+
name: 'OpenCode Zen',
|
|
420
|
+
baseUrl: 'https://opencode.ai/zen/v1',
|
|
165
421
|
needsApiKey: true,
|
|
422
|
+
apiKeyEnvVar: 'OPENCODE_API_KEY',
|
|
166
423
|
suggestedModels: [
|
|
167
424
|
// SOTA
|
|
168
|
-
'
|
|
425
|
+
'claude-opus-5',
|
|
426
|
+
'gpt-5.5',
|
|
427
|
+
'claude-opus-4-8',
|
|
169
428
|
// Fast
|
|
170
|
-
'
|
|
429
|
+
'claude-sonnet-4-6',
|
|
430
|
+
'kimi-k3',
|
|
431
|
+
'gemini-3.7-flash',
|
|
432
|
+
'minimax-m3',
|
|
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
|
+
},
|
|
443
|
+
category: 'cloud',
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: 'requesty',
|
|
447
|
+
name: 'Requesty',
|
|
448
|
+
baseUrl: 'https://router.requesty.ai/v1',
|
|
449
|
+
needsApiKey: true,
|
|
450
|
+
apiKeyHint: 'API Key (from https://app.requesty.ai/api-keys)',
|
|
451
|
+
suggestedModels: [
|
|
452
|
+
'claude-opus-4-8',
|
|
453
|
+
'gpt-5.5@eu',
|
|
454
|
+
'gemini-3.5-flash',
|
|
455
|
+
'kimi-k3',
|
|
171
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
|
+
},
|
|
463
|
+
category: 'cloud',
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
id: 'thesean',
|
|
467
|
+
name: 'Thesean AI',
|
|
468
|
+
baseUrl: 'https://api.thesean.ai',
|
|
469
|
+
needsApiKey: true,
|
|
470
|
+
apiKeyHint: 'API Key (from https://app.thesean.ai/)',
|
|
471
|
+
suggestedModels: [
|
|
472
|
+
'ship-like/claude-opus-4-8',
|
|
473
|
+
],
|
|
474
|
+
category: 'cloud',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
id: 'atlas-cloud',
|
|
478
|
+
name: 'Atlas Cloud',
|
|
479
|
+
baseUrl: 'https://api.atlascloud.ai/v1',
|
|
480
|
+
needsApiKey: true,
|
|
481
|
+
apiKeyHint: 'API Key (from atlascloud.ai/developer)',
|
|
482
|
+
suggestedModels: [
|
|
483
|
+
'gpt-5.6-sol',
|
|
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
|
+
},
|
|
490
|
+
category: 'cloud',
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
id: 'openai-subscription',
|
|
494
|
+
name: 'OpenAI Subscription',
|
|
495
|
+
baseUrl: 'https://chatgpt.com/backend-api/codex',
|
|
496
|
+
needsApiKey: false,
|
|
497
|
+
auth: 'chatgpt-oauth',
|
|
498
|
+
suggestedModels: [
|
|
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 },
|
|
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
|
+
},
|
|
172
517
|
category: 'cloud',
|
|
173
518
|
},
|
|
174
519
|
{
|
|
@@ -179,14 +524,146 @@ export const PROVIDER_PRESETS = [
|
|
|
179
524
|
apiKeyHint: 'API Key (from poe.com/api_key)',
|
|
180
525
|
suggestedModels: [
|
|
181
526
|
// SOTA
|
|
182
|
-
'claude-opus-4.8',
|
|
183
|
-
'gpt-5.5',
|
|
184
|
-
'gemini-3.5-flash',
|
|
527
|
+
'anthropic/claude-opus-4.8',
|
|
528
|
+
'openai/gpt-5.5',
|
|
529
|
+
'google/gemini-3.5-flash',
|
|
185
530
|
// Fast
|
|
186
|
-
'gpt-5.4-mini',
|
|
187
|
-
'claude-sonnet-4.6',
|
|
188
|
-
'kimi-k2.5',
|
|
531
|
+
'openai/gpt-5.4-mini',
|
|
532
|
+
'anthropic/claude-sonnet-4.6',
|
|
533
|
+
'novita/kimi-k2.5',
|
|
189
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
|
+
},
|
|
545
|
+
category: 'cloud',
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: 'kilo',
|
|
549
|
+
name: 'Kilo Gateway',
|
|
550
|
+
baseUrl: 'https://api.kilo.ai/api/gateway',
|
|
551
|
+
needsApiKey: true,
|
|
552
|
+
apiKeyEnvVar: 'KILO_API_KEY',
|
|
553
|
+
suggestedModels: [
|
|
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',
|
|
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
|
+
},
|
|
575
|
+
category: 'cloud',
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
id: 'novita',
|
|
579
|
+
name: 'Novita AI',
|
|
580
|
+
baseUrl: 'https://api.novita.ai/openai',
|
|
581
|
+
needsApiKey: true,
|
|
582
|
+
apiKeyEnvVar: 'NOVITA_API_KEY',
|
|
583
|
+
suggestedModels: [
|
|
584
|
+
// SOTA
|
|
585
|
+
'moonshotai/kimi-k3',
|
|
586
|
+
'zai-org/glm-5.2',
|
|
587
|
+
'qwen/qwen3.7-max',
|
|
588
|
+
'deepseek/deepseek-v4-pro',
|
|
589
|
+
// Fast
|
|
590
|
+
'moonshotai/kimi-k2.7-code',
|
|
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
|
+
},
|
|
190
667
|
category: 'cloud',
|
|
191
668
|
},
|
|
192
669
|
// ── Local providers (no API key) ────────────────────────────────────
|
|
@@ -226,5 +703,28 @@ export const PROVIDER_PRESETS = [
|
|
|
226
703
|
},
|
|
227
704
|
];
|
|
228
705
|
export function findPreset(id) {
|
|
229
|
-
|
|
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;
|
|
230
730
|
}
|