pi-free 2.0.8 → 2.0.10
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 +29 -1
- package/README.md +588 -572
- package/banner.jpg +0 -0
- package/banner.png +0 -0
- package/banner.svg +12 -10
- package/config.ts +349 -337
- package/constants.ts +106 -103
- package/index.ts +242 -239
- package/lib/built-in-toggle.ts +2 -2
- package/lib/model-detection.ts +1 -1
- package/lib/model-enhancer.ts +20 -20
- package/lib/provider-compat.ts +1 -1
- package/lib/registry.ts +1 -1
- package/lib/util.ts +524 -460
- package/package.json +70 -68
- package/provider-helper.ts +1 -1
- package/providers/cline/cline-auth.ts +1 -1
- package/providers/cline/cline.ts +2 -2
- package/providers/codestral/codestral.ts +1 -1
- package/providers/crofai/crofai.ts +190 -99
- package/providers/deepinfra/deepinfra.ts +206 -109
- package/providers/dynamic-built-in/index.ts +1 -1
- package/providers/kilo/kilo-auth.ts +1 -1
- package/providers/kilo/kilo.ts +2 -2
- package/providers/llm7/llm7.ts +1 -1
- package/providers/nvidia/nvidia.ts +1 -1
- package/providers/ollama/ollama.ts +610 -295
- package/providers/ollama/thinking-levels.ts +96 -0
- package/providers/qwen/qwen-auth.ts +1 -1
- package/providers/qwen/qwen-models.ts +101 -101
- package/providers/qwen/qwen.ts +2 -2
- package/providers/sambanova/sambanova.ts +1 -1
- package/providers/together/together.ts +197 -0
- package/providers/zenmux/zenmux.ts +194 -179
package/index.ts
CHANGED
|
@@ -1,239 +1,242 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pi-Free Providers Index
|
|
3
|
-
*
|
|
4
|
-
* Provides free model filtering for ALL providers (built-in + extension)
|
|
5
|
-
* plus unique free/paid providers not covered by pi's built-in providers.
|
|
6
|
-
*
|
|
7
|
-
* Unique providers:
|
|
8
|
-
* - Kilo: OAuth-based free models
|
|
9
|
-
* - Cline: Cline bot integration
|
|
10
|
-
* - NVIDIA: NVIDIA NIM hosting (free tier available)
|
|
11
|
-
* - Ollama Cloud: Ollama's cloud-hosted models with usage-based free tier
|
|
12
|
-
* - ZenMux: Unified AI API gateway with 200+ models
|
|
13
|
-
* - Codestral: Mistral's code-focused model via codestral.mistral.ai (free tier)
|
|
14
|
-
* - DeepInfra: AI inference cloud ($5 trial credit)
|
|
15
|
-
* - SambaNova: Fast inference on RDU hardware (free tier, no credit card)
|
|
16
|
-
* -
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// =============================================================================
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
// =============================================================================
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
// =============================================================================
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
)
|
|
217
|
-
await
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
//
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Pi-Free Providers Index
|
|
3
|
+
*
|
|
4
|
+
* Provides free model filtering for ALL providers (built-in + extension)
|
|
5
|
+
* plus unique free/paid providers not covered by pi's built-in providers.
|
|
6
|
+
*
|
|
7
|
+
* Unique providers:
|
|
8
|
+
* - Kilo: OAuth-based free models
|
|
9
|
+
* - Cline: Cline bot integration
|
|
10
|
+
* - NVIDIA: NVIDIA NIM hosting (free tier available)
|
|
11
|
+
* - Ollama Cloud: Ollama's cloud-hosted models with usage-based free tier
|
|
12
|
+
* - ZenMux: Unified AI API gateway with 200+ models
|
|
13
|
+
* - Codestral: Mistral's code-focused model via codestral.mistral.ai (free tier)
|
|
14
|
+
* - DeepInfra: AI inference cloud ($5 trial credit)
|
|
15
|
+
* - SambaNova: Fast inference on RDU hardware (free tier, no credit card)
|
|
16
|
+
* - Together: Fast inference on 200+ open-source models ($1 trial credit)
|
|
17
|
+
* - LLM7: AI gateway (free default/fast selectors)
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
21
|
+
import { setupBuiltInProviderToggles } from "./lib/built-in-toggle.ts";
|
|
22
|
+
import { createLogger } from "./lib/logger.ts";
|
|
23
|
+
import {
|
|
24
|
+
processQuotaResponse,
|
|
25
|
+
formatQuotaStatus,
|
|
26
|
+
} from "./lib/quota-monitor.ts";
|
|
27
|
+
import {
|
|
28
|
+
applyGlobalFilter,
|
|
29
|
+
getGlobalFreeOnly,
|
|
30
|
+
getProviderRegistry,
|
|
31
|
+
isFreeModel,
|
|
32
|
+
registerWithGlobalToggle,
|
|
33
|
+
} from "./lib/registry.ts";
|
|
34
|
+
// Import unique provider extensions (only providers NOT built into pi)
|
|
35
|
+
import cline from "./providers/cline/cline.ts";
|
|
36
|
+
import codestral from "./providers/codestral/codestral.ts";
|
|
37
|
+
import crofai from "./providers/crofai/crofai.ts";
|
|
38
|
+
import kilo from "./providers/kilo/kilo.ts";
|
|
39
|
+
import llm7 from "./providers/llm7/llm7.ts";
|
|
40
|
+
import deepinfra from "./providers/deepinfra/deepinfra.ts";
|
|
41
|
+
import sambanova from "./providers/sambanova/sambanova.ts";
|
|
42
|
+
import together from "./providers/together/together.ts";
|
|
43
|
+
import nvidia from "./providers/nvidia/nvidia.ts";
|
|
44
|
+
import ollama from "./providers/ollama/ollama.ts";
|
|
45
|
+
import zenmux from "./providers/zenmux/zenmux.ts";
|
|
46
|
+
|
|
47
|
+
const _logger = createLogger("pi-free");
|
|
48
|
+
|
|
49
|
+
// =============================================================================
|
|
50
|
+
// Global Commands
|
|
51
|
+
// =============================================================================
|
|
52
|
+
|
|
53
|
+
function setupGlobalCommands(pi: ExtensionAPI) {
|
|
54
|
+
// /toggle-free - Global free-only mode toggle
|
|
55
|
+
pi.registerCommand("toggle-free", {
|
|
56
|
+
description: "Toggle global free-only mode for all providers",
|
|
57
|
+
handler: async (_args, ctx) => {
|
|
58
|
+
const current = getGlobalFreeOnly();
|
|
59
|
+
const next = !current;
|
|
60
|
+
applyGlobalFilter(pi, next);
|
|
61
|
+
|
|
62
|
+
const registry = getProviderRegistry();
|
|
63
|
+
const providerCount = registry.size;
|
|
64
|
+
|
|
65
|
+
if (next) {
|
|
66
|
+
const totalFree = [...registry.values()].reduce(
|
|
67
|
+
(sum, e) => sum + e.stored.free.length,
|
|
68
|
+
0,
|
|
69
|
+
);
|
|
70
|
+
ctx.ui.notify(
|
|
71
|
+
`Free-only mode: ON (${totalFree} free models across ${providerCount} providers)`,
|
|
72
|
+
"info",
|
|
73
|
+
);
|
|
74
|
+
} else {
|
|
75
|
+
const totalAll = [...registry.values()].reduce(
|
|
76
|
+
(sum, e) => sum + (e.stored.all.length || e.stored.free.length),
|
|
77
|
+
0,
|
|
78
|
+
);
|
|
79
|
+
ctx.ui.notify(
|
|
80
|
+
`Free-only mode: OFF (all ${totalAll} models visible across ${providerCount} providers)`,
|
|
81
|
+
"info",
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
// /free-providers - Show free model counts by provider
|
|
88
|
+
pi.registerCommand("free-providers", {
|
|
89
|
+
description: "Show free/paid model counts for all pi-free providers",
|
|
90
|
+
handler: async (_args, ctx) => {
|
|
91
|
+
const lines = ["📊 Pi-Free Providers:", ""];
|
|
92
|
+
const registry = getProviderRegistry();
|
|
93
|
+
|
|
94
|
+
// Providers known to not expose pricing via API (all models show as "free")
|
|
95
|
+
// OpenRouter and OpenCode expose actual pricing
|
|
96
|
+
const noPricingApi = new Set([
|
|
97
|
+
"mistral",
|
|
98
|
+
"xai",
|
|
99
|
+
"huggingface",
|
|
100
|
+
"groq",
|
|
101
|
+
"cerebras",
|
|
102
|
+
]);
|
|
103
|
+
// Freemium providers - all models share a free tier quota
|
|
104
|
+
const freemiumProviders = new Set([
|
|
105
|
+
"nvidia",
|
|
106
|
+
"sambanova",
|
|
107
|
+
"ollama-cloud",
|
|
108
|
+
]);
|
|
109
|
+
// Trial credit providers - one-time credits, otherwise paid
|
|
110
|
+
const trialCreditProviders = new Set(["deepinfra"]);
|
|
111
|
+
|
|
112
|
+
for (const [id, entry] of registry) {
|
|
113
|
+
const free = entry.stored.free.length;
|
|
114
|
+
const all = entry.stored.all.length || free;
|
|
115
|
+
const indicator = entry.hasKey ? "🔑" : "🆓";
|
|
116
|
+
const paid = all - free;
|
|
117
|
+
|
|
118
|
+
if (freemiumProviders.has(id)) {
|
|
119
|
+
// Freemium: all models share a free tier (e.g., 1,000 reqs/month)
|
|
120
|
+
lines.push(`${indicator} ${id}: ${all} models (freemium)`);
|
|
121
|
+
} else if (trialCreditProviders.has(id)) {
|
|
122
|
+
// Trial credit: one-time credits, otherwise paid
|
|
123
|
+
lines.push(`${indicator} ${id}: ${all} models ($5 trial credit)`);
|
|
124
|
+
} else if (noPricingApi.has(id)) {
|
|
125
|
+
// Provider doesn't expose pricing - can't determine free vs paid
|
|
126
|
+
lines.push(
|
|
127
|
+
`${indicator} ${id}: ${all} models (pricing not exposed by API)`,
|
|
128
|
+
);
|
|
129
|
+
} else if (paid === 0 && free > 0) {
|
|
130
|
+
// All models are actually free
|
|
131
|
+
lines.push(`${indicator} ${id}: ${free} free models`);
|
|
132
|
+
} else {
|
|
133
|
+
// Mix of free and paid
|
|
134
|
+
lines.push(
|
|
135
|
+
`${indicator} ${id}: ${free} free / ${paid} paid (${all} total)`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (registry.size === 0) {
|
|
141
|
+
lines.push("(No providers registered yet)");
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
ctx.ui.notify(lines.join("\n"), "info");
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// =============================================================================
|
|
150
|
+
// Quota Monitoring
|
|
151
|
+
// =============================================================================
|
|
152
|
+
|
|
153
|
+
function setupQuotaMonitoring(pi: ExtensionAPI) {
|
|
154
|
+
// Capture rate-limit headers from every provider response
|
|
155
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
156
|
+
(pi as any).on(
|
|
157
|
+
"after_provider_response",
|
|
158
|
+
(event: { status: number; headers: Record<string, string> }, ctx: any) => {
|
|
159
|
+
const providerId = ctx.model?.provider;
|
|
160
|
+
if (!providerId) return;
|
|
161
|
+
|
|
162
|
+
processQuotaResponse(providerId, event.headers);
|
|
163
|
+
|
|
164
|
+
// Update status bar with quota for the active provider
|
|
165
|
+
const status = formatQuotaStatus(providerId);
|
|
166
|
+
if (status) {
|
|
167
|
+
ctx.ui.setStatus("quota", status);
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
// Clear quota status when switching away from a provider
|
|
173
|
+
pi.on("model_select", (_event, ctx) => {
|
|
174
|
+
const providerId = ctx.model?.provider;
|
|
175
|
+
if (!providerId) {
|
|
176
|
+
ctx.ui.setStatus("quota", undefined);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
// Show cached quota on provider switch (if still fresh)
|
|
180
|
+
const status = formatQuotaStatus(providerId);
|
|
181
|
+
ctx.ui.setStatus("quota", status);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// =============================================================================
|
|
186
|
+
// Main Entry Point
|
|
187
|
+
// =============================================================================
|
|
188
|
+
|
|
189
|
+
export default async function piFreeEntry(pi: ExtensionAPI) {
|
|
190
|
+
const globalFreeOnly = getGlobalFreeOnly();
|
|
191
|
+
_logger.info(`[pi-free] Initializing (global free-only: ${globalFreeOnly})`);
|
|
192
|
+
|
|
193
|
+
// Setup global commands first
|
|
194
|
+
setupGlobalCommands(pi);
|
|
195
|
+
|
|
196
|
+
// Setup quota monitoring (passive, no extra API calls)
|
|
197
|
+
setupQuotaMonitoring(pi);
|
|
198
|
+
|
|
199
|
+
// Load all unique providers
|
|
200
|
+
// Each provider will register itself with the global toggle system
|
|
201
|
+
await Promise.allSettled([
|
|
202
|
+
nvidia(pi),
|
|
203
|
+
kilo(pi),
|
|
204
|
+
ollama(pi),
|
|
205
|
+
cline(pi),
|
|
206
|
+
zenmux(pi),
|
|
207
|
+
crofai(pi),
|
|
208
|
+
codestral(pi),
|
|
209
|
+
llm7(pi),
|
|
210
|
+
deepinfra(pi),
|
|
211
|
+
sambanova(pi),
|
|
212
|
+
together(pi),
|
|
213
|
+
]);
|
|
214
|
+
|
|
215
|
+
// Setup dynamic built-in providers (Mistral, Groq, Cerebras, xAI, Hugging Face)
|
|
216
|
+
// These only activate if the user has configured API keys (OpenRouter works without key too)
|
|
217
|
+
const { setupDynamicBuiltInProviders } = await import(
|
|
218
|
+
"./providers/dynamic-built-in/index.ts"
|
|
219
|
+
);
|
|
220
|
+
await setupDynamicBuiltInProviders(pi);
|
|
221
|
+
|
|
222
|
+
// Setup toggles for pi's built-in providers (e.g., OpenCode)
|
|
223
|
+
setupBuiltInProviderToggles(pi);
|
|
224
|
+
|
|
225
|
+
// Apply initial global filter if free-only mode is enabled
|
|
226
|
+
if (globalFreeOnly) {
|
|
227
|
+
_logger.info("[pi-free] Applying initial free-only filter");
|
|
228
|
+
applyGlobalFilter(pi, true);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const registry = getProviderRegistry();
|
|
232
|
+
_logger.info(`[pi-free] Loaded with ${registry.size} providers`);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Re-export registry helpers so consumers don't need deep imports
|
|
236
|
+
export {
|
|
237
|
+
applyGlobalFilter,
|
|
238
|
+
getGlobalFreeOnly,
|
|
239
|
+
getProviderRegistry,
|
|
240
|
+
isFreeModel,
|
|
241
|
+
registerWithGlobalToggle,
|
|
242
|
+
};
|
package/lib/built-in-toggle.ts
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* Usage: /toggle-opencode
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import type { Api, Model } from "@
|
|
14
|
+
import type { Api, Model } from "@earendil-works/pi-ai";
|
|
15
15
|
import type {
|
|
16
16
|
ExtensionAPI,
|
|
17
17
|
ProviderModelConfig,
|
|
18
|
-
} from "@
|
|
18
|
+
} from "@earendil-works/pi-coding-agent";
|
|
19
19
|
import { getOpencodeShowPaid, getOpenrouterShowPaid } from "../config.ts";
|
|
20
20
|
import { createLogger } from "./logger.ts";
|
|
21
21
|
import { isFreeModel, registerWithGlobalToggle } from "./registry.ts";
|
package/lib/model-detection.ts
CHANGED
package/lib/model-enhancer.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model name enhancement helper
|
|
3
|
-
* Adds Coding Index scores to model names for display in /model
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { ProviderModelConfig } from "@
|
|
7
|
-
import { enhanceModelNameWithCodingIndex } from "../provider-failover/benchmark-lookup.ts";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Enhance model names with Coding Index scores
|
|
11
|
-
* Use this before registering providers to show CI in /model list
|
|
12
|
-
*/
|
|
13
|
-
export function enhanceModelsWithCodingIndex(
|
|
14
|
-
models: ProviderModelConfig[],
|
|
15
|
-
): ProviderModelConfig[] {
|
|
16
|
-
return models.map((m) => ({
|
|
17
|
-
...m,
|
|
18
|
-
name: enhanceModelNameWithCodingIndex(m.name, m.id),
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Model name enhancement helper
|
|
3
|
+
* Adds Coding Index scores to model names for display in /model
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
7
|
+
import { enhanceModelNameWithCodingIndex } from "../provider-failover/benchmark-lookup.ts";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Enhance model names with Coding Index scores
|
|
11
|
+
* Use this before registering providers to show CI in /model list
|
|
12
|
+
*/
|
|
13
|
+
export function enhanceModelsWithCodingIndex(
|
|
14
|
+
models: ProviderModelConfig[],
|
|
15
|
+
): ProviderModelConfig[] {
|
|
16
|
+
return models.map((m) => ({
|
|
17
|
+
...m,
|
|
18
|
+
name: enhanceModelNameWithCodingIndex(m.name, m.id),
|
|
19
|
+
}));
|
|
20
|
+
}
|
package/lib/provider-compat.ts
CHANGED
package/lib/registry.ts
CHANGED