@providerkit/core 0.8.1 → 0.9.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/dist/capability.d.ts +41 -0
- package/dist/capability.d.ts.map +1 -1
- package/dist/capability.js +94 -0
- package/dist/capability.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +77 -13
- package/dist/errors.js.map +1 -1
- package/dist/presets.d.ts +127 -28
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +126 -26
- package/dist/presets.js.map +1 -1
- package/dist/providers/factory.d.ts.map +1 -1
- package/dist/providers/factory.js +1 -0
- package/dist/providers/factory.js.map +1 -1
- package/dist/providers/openai.d.ts.map +1 -1
- package/dist/providers/openai.js +4 -1
- package/dist/providers/openai.js.map +1 -1
- package/dist/rate-limit.d.ts +2 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +91 -34
- package/dist/rate-limit.js.map +1 -1
- package/package.json +2 -1
- package/src/capability.ts +157 -0
- package/src/errors.ts +78 -13
- package/src/presets.ts +131 -28
- package/src/providers/factory.ts +1 -0
- package/src/providers/openai.ts +5 -1
- package/src/rate-limit.ts +98 -36
package/dist/presets.d.ts
CHANGED
|
@@ -35,9 +35,11 @@ export type PresetAuth = "key" | "bearer" | "oauth";
|
|
|
35
35
|
export interface ProviderPreset {
|
|
36
36
|
/** Adapter wire format. */
|
|
37
37
|
shape: PresetShape;
|
|
38
|
-
/** API root —
|
|
39
|
-
*
|
|
38
|
+
/** API root — if it ends with /v1, /v4 or another version segment, the
|
|
39
|
+
* adapter automatically routes to /chat/completions instead of /v1/chat/completions. */
|
|
40
40
|
baseUrl: string;
|
|
41
|
+
/** Explicit path override when a gateway has custom routing. */
|
|
42
|
+
path?: string;
|
|
41
43
|
auth: PresetAuth;
|
|
42
44
|
/** Fallback when the caller passes no model. */
|
|
43
45
|
defaultModel?: string;
|
|
@@ -61,22 +63,22 @@ export declare const PROVIDER_PRESETS: {
|
|
|
61
63
|
readonly shape: "anthropic";
|
|
62
64
|
readonly baseUrl: "https://api.anthropic.com";
|
|
63
65
|
readonly auth: "key";
|
|
64
|
-
readonly defaultModel: "claude-sonnet-
|
|
65
|
-
readonly models: ["claude-sonnet-
|
|
66
|
+
readonly defaultModel: "claude-sonnet-5";
|
|
67
|
+
readonly models: ["claude-sonnet-5", "claude-opus-5", "claude-fable-5-1", "claude-haiku-4-5"];
|
|
66
68
|
};
|
|
67
69
|
readonly openai: {
|
|
68
70
|
readonly shape: "openai";
|
|
69
71
|
readonly baseUrl: "https://api.openai.com";
|
|
70
72
|
readonly auth: "key";
|
|
71
73
|
readonly defaultModel: "gpt-5.6-sol";
|
|
72
|
-
readonly models: ["gpt-5.6-sol", "gpt-5-pro", "gpt-5-
|
|
74
|
+
readonly models: ["gpt-5.6-sol", "gpt-5.5-pro", "gpt-5.4-mini"];
|
|
73
75
|
};
|
|
74
76
|
readonly google: {
|
|
75
77
|
readonly shape: "gemini";
|
|
76
78
|
readonly baseUrl: "https://generativelanguage.googleapis.com";
|
|
77
79
|
readonly auth: "key";
|
|
78
|
-
readonly defaultModel: "gemini-3.1-pro";
|
|
79
|
-
readonly models: ["gemini-3.1-pro", "gemini-
|
|
80
|
+
readonly defaultModel: "gemini-3.1-pro-preview";
|
|
81
|
+
readonly models: ["gemini-3.1-pro-preview", "gemini-3.8-flash", "gemini-flash-latest"];
|
|
80
82
|
};
|
|
81
83
|
/** Gemini behind its OpenAI-compatible route — the drop-in for codebases
|
|
82
84
|
* that only speak the openai shape. */
|
|
@@ -84,15 +86,15 @@ export declare const PROVIDER_PRESETS: {
|
|
|
84
86
|
readonly shape: "openai";
|
|
85
87
|
readonly baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai";
|
|
86
88
|
readonly auth: "key";
|
|
87
|
-
readonly defaultModel: "gemini-3.1-pro";
|
|
88
|
-
readonly models: ["gemini-3.1-pro", "gemini-
|
|
89
|
+
readonly defaultModel: "gemini-3.1-pro-preview";
|
|
90
|
+
readonly models: ["gemini-3.1-pro-preview", "gemini-3.8-flash", "gemini-flash-latest"];
|
|
89
91
|
};
|
|
90
92
|
readonly deepseek: {
|
|
91
93
|
readonly shape: "openai";
|
|
92
94
|
readonly baseUrl: "https://api.deepseek.com";
|
|
93
95
|
readonly auth: "key";
|
|
94
|
-
readonly defaultModel: "deepseek-
|
|
95
|
-
readonly models: ["deepseek-
|
|
96
|
+
readonly defaultModel: "deepseek-flash";
|
|
97
|
+
readonly models: ["deepseek-flash", "deepseek-v4-pro"];
|
|
96
98
|
readonly textOnly: true;
|
|
97
99
|
};
|
|
98
100
|
readonly openrouter: {
|
|
@@ -100,7 +102,7 @@ export declare const PROVIDER_PRESETS: {
|
|
|
100
102
|
readonly baseUrl: "https://openrouter.ai/api";
|
|
101
103
|
readonly auth: "key";
|
|
102
104
|
readonly defaultModel: "deepseek/deepseek-v4.1-flash";
|
|
103
|
-
readonly models: ["deepseek/deepseek-v4.1-flash", "z-ai/glm-5.3-flash", "
|
|
105
|
+
readonly models: ["deepseek/deepseek-v4.1-flash", "z-ai/glm-5.3-flash", "x-ai/grok-4.6", "openai/gpt-5.6-luna-pro"];
|
|
104
106
|
};
|
|
105
107
|
readonly groq: {
|
|
106
108
|
readonly shape: "openai";
|
|
@@ -114,25 +116,28 @@ export declare const PROVIDER_PRESETS: {
|
|
|
114
116
|
readonly baseUrl: "https://api.mistral.ai/v1";
|
|
115
117
|
readonly auth: "key";
|
|
116
118
|
readonly defaultModel: "devstral-2512";
|
|
117
|
-
readonly models: ["devstral-2512", "
|
|
119
|
+
readonly models: ["devstral-2512", "mistral-large-latest", "magistral-small"];
|
|
118
120
|
};
|
|
119
121
|
readonly xai: {
|
|
120
122
|
readonly shape: "openai";
|
|
121
123
|
readonly baseUrl: "https://api.x.ai/v1";
|
|
122
124
|
readonly auth: "key";
|
|
123
|
-
readonly defaultModel: "grok-4.
|
|
124
|
-
readonly models: ["grok-4.
|
|
125
|
+
readonly defaultModel: "grok-4.6";
|
|
126
|
+
readonly models: ["grok-4.6", "grok-4.5", "grok-4.3"];
|
|
125
127
|
};
|
|
126
128
|
readonly together: {
|
|
127
129
|
readonly shape: "openai";
|
|
128
130
|
readonly baseUrl: "https://api.together.xyz/v1";
|
|
129
131
|
readonly auth: "key";
|
|
130
|
-
readonly defaultModel: "
|
|
132
|
+
readonly defaultModel: "MiniMaxAI/MiniMax-M3";
|
|
133
|
+
readonly models: ["MiniMaxAI/MiniMax-M3", "Qwen/Qwen3-Coder-Next-FP8"];
|
|
131
134
|
};
|
|
132
135
|
readonly fireworks: {
|
|
133
136
|
readonly shape: "openai";
|
|
134
137
|
readonly baseUrl: "https://api.fireworks.ai/inference/v1";
|
|
135
138
|
readonly auth: "key";
|
|
139
|
+
readonly defaultModel: "accounts/fireworks/models/deepseek-v4p1-flash";
|
|
140
|
+
readonly models: ["accounts/fireworks/models/deepseek-v4p1-flash", "accounts/fireworks/models/glm-5p3-flash"];
|
|
136
141
|
};
|
|
137
142
|
readonly cerebras: {
|
|
138
143
|
readonly shape: "openai";
|
|
@@ -151,23 +156,117 @@ export declare const PROVIDER_PRESETS: {
|
|
|
151
156
|
readonly zhipu: {
|
|
152
157
|
readonly shape: "openai";
|
|
153
158
|
readonly baseUrl: "https://api.z.ai/api/paas/v4";
|
|
159
|
+
readonly path: "/chat/completions";
|
|
154
160
|
readonly auth: "key";
|
|
155
161
|
readonly defaultModel: "glm-5.3-flash";
|
|
156
|
-
readonly models: ["glm-5.3-flash", "glm-5.
|
|
162
|
+
readonly models: ["glm-5.3-flash", "glm-5.3", "glm-5.2"];
|
|
157
163
|
};
|
|
158
164
|
readonly minimax: {
|
|
159
165
|
readonly shape: "anthropic";
|
|
160
166
|
readonly baseUrl: "https://api.minimax.io/anthropic";
|
|
161
167
|
readonly auth: "key";
|
|
162
|
-
readonly defaultModel: "MiniMax-
|
|
163
|
-
readonly models: ["MiniMax-M3", "MiniMax-M2.
|
|
168
|
+
readonly defaultModel: "MiniMax-M3";
|
|
169
|
+
readonly models: ["MiniMax-M3", "MiniMax-M2.7", "MiniMax-M2.5"];
|
|
170
|
+
};
|
|
171
|
+
readonly nvidia: {
|
|
172
|
+
readonly shape: "openai";
|
|
173
|
+
readonly baseUrl: "https://integrate.api.nvidia.com/v1";
|
|
174
|
+
readonly auth: "key";
|
|
175
|
+
readonly defaultModel: "deepseek-ai/deepseek-v4-flash";
|
|
176
|
+
readonly models: ["deepseek-ai/deepseek-v4-flash", "deepseek-ai/deepseek-v4-pro"];
|
|
177
|
+
};
|
|
178
|
+
readonly perplexity: {
|
|
179
|
+
readonly shape: "openai";
|
|
180
|
+
readonly baseUrl: "https://api.perplexity.ai";
|
|
181
|
+
readonly auth: "key";
|
|
182
|
+
readonly defaultModel: "sonar";
|
|
183
|
+
readonly models: ["sonar", "sonar-pro", "sonar-reasoning-pro", "sonar-deep-research"];
|
|
184
|
+
};
|
|
185
|
+
readonly deepinfra: {
|
|
186
|
+
readonly shape: "openai";
|
|
187
|
+
readonly baseUrl: "https://api.deepinfra.com/v1/openai";
|
|
188
|
+
readonly path: "/chat/completions";
|
|
189
|
+
readonly auth: "key";
|
|
190
|
+
readonly defaultModel: "MiniMaxAI/MiniMax-M3";
|
|
191
|
+
readonly models: ["MiniMaxAI/MiniMax-M3", "ByteDance/Seed-2.0-pro"];
|
|
192
|
+
};
|
|
193
|
+
readonly nebius: {
|
|
194
|
+
readonly shape: "openai";
|
|
195
|
+
readonly baseUrl: "https://api.tokenfactory.nebius.com/v1";
|
|
196
|
+
readonly auth: "key";
|
|
197
|
+
readonly defaultModel: "Qwen/Qwen3.5-397B-A17B";
|
|
198
|
+
readonly models: ["Qwen/Qwen3.5-397B-A17B", "deepseek-ai/DeepSeek-V4-Flash-0731"];
|
|
199
|
+
};
|
|
200
|
+
readonly novita: {
|
|
201
|
+
readonly shape: "openai";
|
|
202
|
+
readonly baseUrl: "https://api.novita.ai/openai";
|
|
203
|
+
readonly path: "/v1/chat/completions";
|
|
204
|
+
readonly auth: "key";
|
|
205
|
+
readonly defaultModel: "baichuan/baichuan-m2-32b";
|
|
206
|
+
readonly models: ["baichuan/baichuan-m2-32b", "baidu/ernie-4.5-300b-a47b-paddle"];
|
|
207
|
+
};
|
|
208
|
+
readonly chutes: {
|
|
209
|
+
readonly shape: "openai";
|
|
210
|
+
readonly baseUrl: "https://llm.chutes.ai/v1";
|
|
211
|
+
readonly auth: "key";
|
|
212
|
+
readonly defaultModel: "Qwen/Qwen3.8-27B-TEE";
|
|
213
|
+
readonly models: ["Qwen/Qwen3.8-27B-TEE", "Qwen/Qwen3.5-397B-A17B-TEE"];
|
|
214
|
+
};
|
|
215
|
+
readonly siliconflow: {
|
|
216
|
+
readonly shape: "openai";
|
|
217
|
+
readonly baseUrl: "https://api.siliconflow.com/v1";
|
|
218
|
+
readonly auth: "key";
|
|
219
|
+
readonly defaultModel: "Qwen/Qwen3-235B-A22B-Thinking-2507";
|
|
220
|
+
readonly models: ["Qwen/Qwen3-235B-A22B-Thinking-2507", "MiniMaxAI/MiniMax-M2.5"];
|
|
221
|
+
};
|
|
222
|
+
readonly volcengine: {
|
|
223
|
+
readonly shape: "openai";
|
|
224
|
+
readonly baseUrl: "https://ark.cn-beijing.volces.com/api/v3";
|
|
225
|
+
readonly auth: "key";
|
|
226
|
+
readonly defaultModel: "doubao-seed-1-8-251228";
|
|
227
|
+
readonly models: ["doubao-seed-1-8-251228", "deepseek-v4-flash-ga-260731"];
|
|
228
|
+
};
|
|
229
|
+
readonly stepfun: {
|
|
230
|
+
readonly shape: "openai";
|
|
231
|
+
readonly baseUrl: "https://api.stepfun.com/v1";
|
|
232
|
+
readonly auth: "key";
|
|
233
|
+
readonly defaultModel: "step-3.7-flash";
|
|
234
|
+
readonly models: ["step-3.7-flash", "step-3.5-flash"];
|
|
235
|
+
};
|
|
236
|
+
readonly digitalocean: {
|
|
237
|
+
readonly shape: "openai";
|
|
238
|
+
readonly baseUrl: "https://inference.do-ai.run/v1";
|
|
239
|
+
readonly auth: "key";
|
|
240
|
+
readonly defaultModel: "anthropic-claude-3.7-sonnet";
|
|
241
|
+
readonly models: ["anthropic-claude-3.7-sonnet", "alibaba-qwen3-32b"];
|
|
242
|
+
};
|
|
243
|
+
readonly crusoe: {
|
|
244
|
+
readonly shape: "openai";
|
|
245
|
+
readonly baseUrl: "https://api.inference.crusoecloud.com/v1";
|
|
246
|
+
readonly auth: "key";
|
|
247
|
+
readonly defaultModel: "Qwen/Qwen3-235B-A22B-Instruct-2507";
|
|
248
|
+
readonly models: ["Qwen/Qwen3-235B-A22B-Instruct-2507", "nvidia/NVIDIA-Nemotron-3-Super-120B-A12B"];
|
|
249
|
+
};
|
|
250
|
+
readonly baseten: {
|
|
251
|
+
readonly shape: "openai";
|
|
252
|
+
readonly baseUrl: "https://inference.baseten.co/v1";
|
|
253
|
+
readonly auth: "key";
|
|
254
|
+
readonly defaultModel: "deepseek-ai/DeepSeek-V4.1-Flash";
|
|
255
|
+
readonly models: ["deepseek-ai/DeepSeek-V4.1-Flash", "MiniMaxAI/MiniMax-M2.5"];
|
|
256
|
+
};
|
|
257
|
+
readonly huggingface: {
|
|
258
|
+
readonly shape: "openai";
|
|
259
|
+
readonly baseUrl: "https://router.huggingface.co/v1";
|
|
260
|
+
readonly auth: "key";
|
|
261
|
+
readonly defaultModel: "MiniMaxAI/MiniMax-M3";
|
|
262
|
+
readonly models: ["MiniMaxAI/MiniMax-M3", "Qwen/Qwen2.5-Coder-32B-Instruct"];
|
|
164
263
|
};
|
|
165
264
|
readonly zai: {
|
|
166
265
|
readonly shape: "anthropic";
|
|
167
266
|
readonly baseUrl: "https://api.z.ai/api/anthropic";
|
|
168
267
|
readonly auth: "bearer";
|
|
169
268
|
readonly defaultModel: "glm-5.3-flash";
|
|
170
|
-
readonly models: ["glm-5.3-flash", "glm-5.3-highspeed", "glm-5.
|
|
269
|
+
readonly models: ["glm-5.3-flash", "glm-5.3-highspeed", "glm-5.3", "glm-5.2"];
|
|
171
270
|
readonly explicitNone: true;
|
|
172
271
|
};
|
|
173
272
|
readonly kimi: {
|
|
@@ -175,15 +274,15 @@ export declare const PROVIDER_PRESETS: {
|
|
|
175
274
|
readonly baseUrl: "https://api.kimi.ai/coding";
|
|
176
275
|
readonly auth: "bearer";
|
|
177
276
|
readonly defaultModel: "kimi-for-coding";
|
|
178
|
-
readonly models: ["kimi-for-coding", "kimi-for-coding-highspeed", "k3"];
|
|
277
|
+
readonly models: ["kimi-for-coding", "kimi-for-coding-highspeed", "k3", "k3-256k"];
|
|
179
278
|
};
|
|
180
279
|
/** Alibaba's dashscope coding plan — OpenAI-compatible per its registry. */
|
|
181
280
|
readonly "alibaba-coding-plan": {
|
|
182
281
|
readonly shape: "openai";
|
|
183
282
|
readonly baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1";
|
|
184
283
|
readonly auth: "bearer";
|
|
185
|
-
readonly defaultModel: "qwen3.
|
|
186
|
-
readonly models: ["qwen3.
|
|
284
|
+
readonly defaultModel: "qwen3.5-plus";
|
|
285
|
+
readonly models: ["qwen3.5-plus", "qwen3-coder-next", "glm-5"];
|
|
187
286
|
};
|
|
188
287
|
/** QwenCloud's token plan — Anthropic wire (measured by tabrunner). */
|
|
189
288
|
readonly qwen: {
|
|
@@ -191,7 +290,7 @@ export declare const PROVIDER_PRESETS: {
|
|
|
191
290
|
readonly baseUrl: "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic";
|
|
192
291
|
readonly auth: "bearer";
|
|
193
292
|
readonly defaultModel: "qwen3.8-max";
|
|
194
|
-
readonly models: ["qwen3.8-max", "qwen3.6-flash"];
|
|
293
|
+
readonly models: ["qwen3.8-max", "qwen3.8-flash", "qwen3.6-flash"];
|
|
195
294
|
};
|
|
196
295
|
readonly ollama: {
|
|
197
296
|
readonly shape: "openai";
|
|
@@ -212,8 +311,8 @@ export declare const PROVIDER_PRESETS: {
|
|
|
212
311
|
readonly shape: "anthropic";
|
|
213
312
|
readonly baseUrl: "https://api.anthropic.com";
|
|
214
313
|
readonly auth: "oauth";
|
|
215
|
-
readonly defaultModel: "claude-sonnet-
|
|
216
|
-
readonly models: ["claude-sonnet-
|
|
314
|
+
readonly defaultModel: "claude-sonnet-5";
|
|
315
|
+
readonly models: ["claude-sonnet-5", "claude-opus-5", "claude-fable-5"];
|
|
217
316
|
readonly headers: {
|
|
218
317
|
readonly "anthropic-beta": "claude-code-20250219,oauth-2025-04-20";
|
|
219
318
|
};
|
|
@@ -225,7 +324,7 @@ export declare const PROVIDER_PRESETS: {
|
|
|
225
324
|
readonly baseUrl: "https://chatgpt.com/backend-api/codex";
|
|
226
325
|
readonly auth: "oauth";
|
|
227
326
|
readonly defaultModel: "gpt-5.3-codex";
|
|
228
|
-
readonly models: ["gpt-5.3-codex", "gpt-5.5", "gpt-5.4-mini"];
|
|
327
|
+
readonly models: ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.5", "gpt-5.4-mini"];
|
|
229
328
|
};
|
|
230
329
|
/** Kimi's coding endpoint reached with a subscription token instead of a
|
|
231
330
|
* key — Kimi bills the two separately. */
|
|
@@ -240,7 +339,7 @@ export declare const PROVIDER_PRESETS: {
|
|
|
240
339
|
readonly baseUrl: "https://api.githubcopilot.com";
|
|
241
340
|
readonly auth: "oauth";
|
|
242
341
|
readonly defaultModel: "gpt-5.6-sol";
|
|
243
|
-
readonly models: ["gpt-5.6-sol", "claude-opus-5", "claude-
|
|
342
|
+
readonly models: ["gpt-5.6-sol", "claude-opus-5", "claude-sonnet-5", "gpt-6-astra"];
|
|
244
343
|
};
|
|
245
344
|
};
|
|
246
345
|
export type ProviderPresetId = keyof typeof PROVIDER_PRESETS;
|
package/dist/presets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4MxC,4EAA4E;;;;;;;;IAQ5E,uEAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCvE;iDAC6C;;;;;;;;IAQ7C;+CAC2C;;;;;;;;;;;;;;CAcM,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE7D,0EAA0E;AAC1E,eAAO,MAAM,UAAU,EAAoC,gBAAgB,EAAE,CAAC"}
|
package/dist/presets.js
CHANGED
|
@@ -4,15 +4,15 @@ export const PROVIDER_PRESETS = {
|
|
|
4
4
|
shape: "anthropic",
|
|
5
5
|
baseUrl: "https://api.anthropic.com",
|
|
6
6
|
auth: "key",
|
|
7
|
-
defaultModel: "claude-sonnet-
|
|
8
|
-
models: ["claude-sonnet-
|
|
7
|
+
defaultModel: "claude-sonnet-5",
|
|
8
|
+
models: ["claude-sonnet-5", "claude-opus-5", "claude-fable-5-1", "claude-haiku-4-5"],
|
|
9
9
|
},
|
|
10
10
|
openai: {
|
|
11
11
|
shape: "openai",
|
|
12
12
|
baseUrl: "https://api.openai.com",
|
|
13
13
|
auth: "key",
|
|
14
14
|
defaultModel: "gpt-5.6-sol",
|
|
15
|
-
models: ["gpt-5.6-sol", "gpt-5-pro", "gpt-5-
|
|
15
|
+
models: ["gpt-5.6-sol", "gpt-5.5-pro", "gpt-5.4-mini"],
|
|
16
16
|
},
|
|
17
17
|
google: {
|
|
18
18
|
// Native Generative Language REST — the adapter authenticates with
|
|
@@ -20,8 +20,8 @@ export const PROVIDER_PRESETS = {
|
|
|
20
20
|
shape: "gemini",
|
|
21
21
|
baseUrl: "https://generativelanguage.googleapis.com",
|
|
22
22
|
auth: "key",
|
|
23
|
-
defaultModel: "gemini-3.1-pro",
|
|
24
|
-
models: ["gemini-3.1-pro", "gemini-
|
|
23
|
+
defaultModel: "gemini-3.1-pro-preview",
|
|
24
|
+
models: ["gemini-3.1-pro-preview", "gemini-3.8-flash", "gemini-flash-latest"],
|
|
25
25
|
},
|
|
26
26
|
/** Gemini behind its OpenAI-compatible route — the drop-in for codebases
|
|
27
27
|
* that only speak the openai shape. */
|
|
@@ -29,15 +29,17 @@ export const PROVIDER_PRESETS = {
|
|
|
29
29
|
shape: "openai",
|
|
30
30
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai",
|
|
31
31
|
auth: "key",
|
|
32
|
-
defaultModel: "gemini-3.1-pro",
|
|
33
|
-
models: ["gemini-3.1-pro", "gemini-
|
|
32
|
+
defaultModel: "gemini-3.1-pro-preview",
|
|
33
|
+
models: ["gemini-3.1-pro-preview", "gemini-3.8-flash", "gemini-flash-latest"],
|
|
34
34
|
},
|
|
35
35
|
deepseek: {
|
|
36
36
|
shape: "openai",
|
|
37
37
|
baseUrl: "https://api.deepseek.com",
|
|
38
38
|
auth: "key",
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
// Measured 2026-09-13 via /models on live key: first-party serves only
|
|
40
|
+
// deepseek-flash and deepseek-v4-pro. v4.1-flash is OpenRouter/Baseten.
|
|
41
|
+
defaultModel: "deepseek-flash",
|
|
42
|
+
models: ["deepseek-flash", "deepseek-v4-pro"],
|
|
41
43
|
// Text-only API — an image part in the body is a hard 400 (measured).
|
|
42
44
|
textOnly: true,
|
|
43
45
|
},
|
|
@@ -46,7 +48,7 @@ export const PROVIDER_PRESETS = {
|
|
|
46
48
|
baseUrl: "https://openrouter.ai/api",
|
|
47
49
|
auth: "key",
|
|
48
50
|
defaultModel: "deepseek/deepseek-v4.1-flash",
|
|
49
|
-
models: ["deepseek/deepseek-v4.1-flash", "z-ai/glm-5.3-flash", "
|
|
51
|
+
models: ["deepseek/deepseek-v4.1-flash", "z-ai/glm-5.3-flash", "x-ai/grok-4.6", "openai/gpt-5.6-luna-pro"],
|
|
50
52
|
},
|
|
51
53
|
groq: {
|
|
52
54
|
shape: "openai",
|
|
@@ -60,25 +62,28 @@ export const PROVIDER_PRESETS = {
|
|
|
60
62
|
baseUrl: "https://api.mistral.ai/v1",
|
|
61
63
|
auth: "key",
|
|
62
64
|
defaultModel: "devstral-2512",
|
|
63
|
-
models: ["devstral-2512", "
|
|
65
|
+
models: ["devstral-2512", "mistral-large-latest", "magistral-small"],
|
|
64
66
|
},
|
|
65
67
|
xai: {
|
|
66
68
|
shape: "openai",
|
|
67
69
|
baseUrl: "https://api.x.ai/v1",
|
|
68
70
|
auth: "key",
|
|
69
|
-
defaultModel: "grok-4.
|
|
70
|
-
models: ["grok-4.
|
|
71
|
+
defaultModel: "grok-4.6",
|
|
72
|
+
models: ["grok-4.6", "grok-4.5", "grok-4.3"],
|
|
71
73
|
},
|
|
72
74
|
together: {
|
|
73
75
|
shape: "openai",
|
|
74
76
|
baseUrl: "https://api.together.xyz/v1",
|
|
75
77
|
auth: "key",
|
|
76
|
-
defaultModel: "
|
|
78
|
+
defaultModel: "MiniMaxAI/MiniMax-M3",
|
|
79
|
+
models: ["MiniMaxAI/MiniMax-M3", "Qwen/Qwen3-Coder-Next-FP8"],
|
|
77
80
|
},
|
|
78
81
|
fireworks: {
|
|
79
82
|
shape: "openai",
|
|
80
83
|
baseUrl: "https://api.fireworks.ai/inference/v1",
|
|
81
84
|
auth: "key",
|
|
85
|
+
defaultModel: "accounts/fireworks/models/deepseek-v4p1-flash",
|
|
86
|
+
models: ["accounts/fireworks/models/deepseek-v4p1-flash", "accounts/fireworks/models/glm-5p3-flash"],
|
|
82
87
|
},
|
|
83
88
|
cerebras: {
|
|
84
89
|
shape: "openai",
|
|
@@ -97,16 +102,111 @@ export const PROVIDER_PRESETS = {
|
|
|
97
102
|
zhipu: {
|
|
98
103
|
shape: "openai",
|
|
99
104
|
baseUrl: "https://api.z.ai/api/paas/v4",
|
|
105
|
+
path: "/chat/completions",
|
|
100
106
|
auth: "key",
|
|
101
107
|
defaultModel: "glm-5.3-flash",
|
|
102
|
-
models: ["glm-5.3-flash", "glm-5.
|
|
108
|
+
models: ["glm-5.3-flash", "glm-5.3", "glm-5.2"],
|
|
103
109
|
},
|
|
104
110
|
minimax: {
|
|
105
111
|
shape: "anthropic",
|
|
106
112
|
baseUrl: "https://api.minimax.io/anthropic",
|
|
107
113
|
auth: "key",
|
|
108
|
-
defaultModel: "MiniMax-
|
|
109
|
-
models: ["MiniMax-M3", "MiniMax-M2.
|
|
114
|
+
defaultModel: "MiniMax-M3",
|
|
115
|
+
models: ["MiniMax-M3", "MiniMax-M2.7", "MiniMax-M2.5"],
|
|
116
|
+
},
|
|
117
|
+
// ── Popular gateways & cloud providers ──────────────────────────────────
|
|
118
|
+
nvidia: {
|
|
119
|
+
shape: "openai",
|
|
120
|
+
baseUrl: "https://integrate.api.nvidia.com/v1",
|
|
121
|
+
auth: "key",
|
|
122
|
+
defaultModel: "deepseek-ai/deepseek-v4-flash",
|
|
123
|
+
models: ["deepseek-ai/deepseek-v4-flash", "deepseek-ai/deepseek-v4-pro"],
|
|
124
|
+
},
|
|
125
|
+
perplexity: {
|
|
126
|
+
shape: "openai",
|
|
127
|
+
baseUrl: "https://api.perplexity.ai",
|
|
128
|
+
auth: "key",
|
|
129
|
+
defaultModel: "sonar",
|
|
130
|
+
models: ["sonar", "sonar-pro", "sonar-reasoning-pro", "sonar-deep-research"],
|
|
131
|
+
},
|
|
132
|
+
deepinfra: {
|
|
133
|
+
shape: "openai",
|
|
134
|
+
baseUrl: "https://api.deepinfra.com/v1/openai",
|
|
135
|
+
path: "/chat/completions",
|
|
136
|
+
auth: "key",
|
|
137
|
+
defaultModel: "MiniMaxAI/MiniMax-M3",
|
|
138
|
+
models: ["MiniMaxAI/MiniMax-M3", "ByteDance/Seed-2.0-pro"],
|
|
139
|
+
},
|
|
140
|
+
nebius: {
|
|
141
|
+
shape: "openai",
|
|
142
|
+
baseUrl: "https://api.tokenfactory.nebius.com/v1",
|
|
143
|
+
auth: "key",
|
|
144
|
+
defaultModel: "Qwen/Qwen3.5-397B-A17B",
|
|
145
|
+
models: ["Qwen/Qwen3.5-397B-A17B", "deepseek-ai/DeepSeek-V4-Flash-0731"],
|
|
146
|
+
},
|
|
147
|
+
novita: {
|
|
148
|
+
shape: "openai",
|
|
149
|
+
baseUrl: "https://api.novita.ai/openai",
|
|
150
|
+
path: "/v1/chat/completions",
|
|
151
|
+
auth: "key",
|
|
152
|
+
defaultModel: "baichuan/baichuan-m2-32b",
|
|
153
|
+
models: ["baichuan/baichuan-m2-32b", "baidu/ernie-4.5-300b-a47b-paddle"],
|
|
154
|
+
},
|
|
155
|
+
chutes: {
|
|
156
|
+
shape: "openai",
|
|
157
|
+
baseUrl: "https://llm.chutes.ai/v1",
|
|
158
|
+
auth: "key",
|
|
159
|
+
defaultModel: "Qwen/Qwen3.8-27B-TEE",
|
|
160
|
+
models: ["Qwen/Qwen3.8-27B-TEE", "Qwen/Qwen3.5-397B-A17B-TEE"],
|
|
161
|
+
},
|
|
162
|
+
siliconflow: {
|
|
163
|
+
shape: "openai",
|
|
164
|
+
baseUrl: "https://api.siliconflow.com/v1",
|
|
165
|
+
auth: "key",
|
|
166
|
+
defaultModel: "Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
167
|
+
models: ["Qwen/Qwen3-235B-A22B-Thinking-2507", "MiniMaxAI/MiniMax-M2.5"],
|
|
168
|
+
},
|
|
169
|
+
volcengine: {
|
|
170
|
+
shape: "openai",
|
|
171
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/v3",
|
|
172
|
+
auth: "key",
|
|
173
|
+
defaultModel: "doubao-seed-1-8-251228",
|
|
174
|
+
models: ["doubao-seed-1-8-251228", "deepseek-v4-flash-ga-260731"],
|
|
175
|
+
},
|
|
176
|
+
stepfun: {
|
|
177
|
+
shape: "openai",
|
|
178
|
+
baseUrl: "https://api.stepfun.com/v1",
|
|
179
|
+
auth: "key",
|
|
180
|
+
defaultModel: "step-3.7-flash",
|
|
181
|
+
models: ["step-3.7-flash", "step-3.5-flash"],
|
|
182
|
+
},
|
|
183
|
+
digitalocean: {
|
|
184
|
+
shape: "openai",
|
|
185
|
+
baseUrl: "https://inference.do-ai.run/v1",
|
|
186
|
+
auth: "key",
|
|
187
|
+
defaultModel: "anthropic-claude-3.7-sonnet",
|
|
188
|
+
models: ["anthropic-claude-3.7-sonnet", "alibaba-qwen3-32b"],
|
|
189
|
+
},
|
|
190
|
+
crusoe: {
|
|
191
|
+
shape: "openai",
|
|
192
|
+
baseUrl: "https://api.inference.crusoecloud.com/v1",
|
|
193
|
+
auth: "key",
|
|
194
|
+
defaultModel: "Qwen/Qwen3-235B-A22B-Instruct-2507",
|
|
195
|
+
models: ["Qwen/Qwen3-235B-A22B-Instruct-2507", "nvidia/NVIDIA-Nemotron-3-Super-120B-A12B"],
|
|
196
|
+
},
|
|
197
|
+
baseten: {
|
|
198
|
+
shape: "openai",
|
|
199
|
+
baseUrl: "https://inference.baseten.co/v1",
|
|
200
|
+
auth: "key",
|
|
201
|
+
defaultModel: "deepseek-ai/DeepSeek-V4.1-Flash",
|
|
202
|
+
models: ["deepseek-ai/DeepSeek-V4.1-Flash", "MiniMaxAI/MiniMax-M2.5"],
|
|
203
|
+
},
|
|
204
|
+
huggingface: {
|
|
205
|
+
shape: "openai",
|
|
206
|
+
baseUrl: "https://router.huggingface.co/v1",
|
|
207
|
+
auth: "key",
|
|
208
|
+
defaultModel: "MiniMaxAI/MiniMax-M3",
|
|
209
|
+
models: ["MiniMaxAI/MiniMax-M3", "Qwen/Qwen2.5-Coder-32B-Instruct"],
|
|
110
210
|
},
|
|
111
211
|
// ── Coding plans — Anthropic wire + Bearer (measured family trait) ─────
|
|
112
212
|
zai: {
|
|
@@ -114,7 +214,7 @@ export const PROVIDER_PRESETS = {
|
|
|
114
214
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
115
215
|
auth: "bearer",
|
|
116
216
|
defaultModel: "glm-5.3-flash",
|
|
117
|
-
models: ["glm-5.3-flash", "glm-5.3-highspeed", "glm-5.
|
|
217
|
+
models: ["glm-5.3-flash", "glm-5.3-highspeed", "glm-5.3", "glm-5.2"],
|
|
118
218
|
// Model ids are BARE here — the gateway-prefixed spelling
|
|
119
219
|
// (`z-ai/glm-5.3-flash`) answers 400 [1211] Unknown Model.
|
|
120
220
|
explicitNone: true,
|
|
@@ -124,15 +224,15 @@ export const PROVIDER_PRESETS = {
|
|
|
124
224
|
baseUrl: "https://api.kimi.ai/coding",
|
|
125
225
|
auth: "bearer",
|
|
126
226
|
defaultModel: "kimi-for-coding",
|
|
127
|
-
models: ["kimi-for-coding", "kimi-for-coding-highspeed", "k3"],
|
|
227
|
+
models: ["kimi-for-coding", "kimi-for-coding-highspeed", "k3", "k3-256k"],
|
|
128
228
|
},
|
|
129
229
|
/** Alibaba's dashscope coding plan — OpenAI-compatible per its registry. */
|
|
130
230
|
"alibaba-coding-plan": {
|
|
131
231
|
shape: "openai",
|
|
132
232
|
baseUrl: "https://coding-intl.dashscope.aliyuncs.com/v1",
|
|
133
233
|
auth: "bearer",
|
|
134
|
-
defaultModel: "qwen3.
|
|
135
|
-
models: ["qwen3.
|
|
234
|
+
defaultModel: "qwen3.5-plus",
|
|
235
|
+
models: ["qwen3.5-plus", "qwen3-coder-next", "glm-5"],
|
|
136
236
|
},
|
|
137
237
|
/** QwenCloud's token plan — Anthropic wire (measured by tabrunner). */
|
|
138
238
|
qwen: {
|
|
@@ -140,7 +240,7 @@ export const PROVIDER_PRESETS = {
|
|
|
140
240
|
baseUrl: "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
|
|
141
241
|
auth: "bearer",
|
|
142
242
|
defaultModel: "qwen3.8-max",
|
|
143
|
-
models: ["qwen3.8-max", "qwen3.6-flash"],
|
|
243
|
+
models: ["qwen3.8-max", "qwen3.8-flash", "qwen3.6-flash"],
|
|
144
244
|
},
|
|
145
245
|
// ── Local runtimes ──────────────────────────────────────────────────────
|
|
146
246
|
ollama: {
|
|
@@ -163,8 +263,8 @@ export const PROVIDER_PRESETS = {
|
|
|
163
263
|
shape: "anthropic",
|
|
164
264
|
baseUrl: "https://api.anthropic.com",
|
|
165
265
|
auth: "oauth",
|
|
166
|
-
defaultModel: "claude-sonnet-
|
|
167
|
-
models: ["claude-sonnet-
|
|
266
|
+
defaultModel: "claude-sonnet-5",
|
|
267
|
+
models: ["claude-sonnet-5", "claude-opus-5", "claude-fable-5"],
|
|
168
268
|
// The beta flag is what switches the API into OAuth-token mode (measured
|
|
169
269
|
// by tabrunner's Claude plan sign-in).
|
|
170
270
|
headers: { "anthropic-beta": "claude-code-20250219,oauth-2025-04-20" },
|
|
@@ -176,7 +276,7 @@ export const PROVIDER_PRESETS = {
|
|
|
176
276
|
baseUrl: "https://chatgpt.com/backend-api/codex",
|
|
177
277
|
auth: "oauth",
|
|
178
278
|
defaultModel: "gpt-5.3-codex",
|
|
179
|
-
models: ["gpt-5.3-codex", "gpt-5.5", "gpt-5.4-mini"],
|
|
279
|
+
models: ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.5", "gpt-5.4-mini"],
|
|
180
280
|
},
|
|
181
281
|
/** Kimi's coding endpoint reached with a subscription token instead of a
|
|
182
282
|
* key — Kimi bills the two separately. */
|
|
@@ -191,7 +291,7 @@ export const PROVIDER_PRESETS = {
|
|
|
191
291
|
baseUrl: "https://api.githubcopilot.com",
|
|
192
292
|
auth: "oauth",
|
|
193
293
|
defaultModel: "gpt-5.6-sol",
|
|
194
|
-
models: ["gpt-5.6-sol", "claude-opus-5", "claude-
|
|
294
|
+
models: ["gpt-5.6-sol", "claude-opus-5", "claude-sonnet-5", "gpt-6-astra"],
|
|
195
295
|
},
|
|
196
296
|
};
|
|
197
297
|
/** Every valid preset id — the factory's unknown-id error lists these. */
|
package/dist/presets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AA+DA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IA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C,gBAAgB,CAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/providers/factory.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;qEACiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf;4EACwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;4CACwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;uDAGmD;IACnD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,oBAAoB,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/providers/factory.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;qEACiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf;4EACwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;4CACwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;uDAGmD;IACnD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,oBAAoB,GAAG,QAAQ,CAiFjG"}
|
|
@@ -59,6 +59,7 @@ export function createPresetProvider(id, config) {
|
|
|
59
59
|
effort: config.effort,
|
|
60
60
|
maxTokens: config.maxTokens,
|
|
61
61
|
baseUrl: preset.baseUrl,
|
|
62
|
+
...(preset.path ? { path: preset.path } : {}),
|
|
62
63
|
headers,
|
|
63
64
|
...(config.providerOrder ? { providerOrder: config.providerOrder } : {}),
|
|
64
65
|
fetchImpl: config.fetchImpl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/providers/factory.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,qEAAqE;AACrE,uEAAuE;AACvE,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,mCAAmC;AACnC,EAAE;AACF,sEAAsE;AACtE,2EAA2E;AAC3E,yEAAyE;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,gBAAgB,GAGjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAA+B,MAAM,gBAAgB,CAAC;AAuBtF,MAAM,UAAU,oBA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