engine7 7.1.32 → 7.1.33
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/engine-startup.mjs +2 -0
- package/dist/main.mjs +2 -0
- package/package.json +1 -1
package/dist/engine-startup.mjs
CHANGED
|
@@ -28100,9 +28100,11 @@ ${notifications}
|
|
|
28100
28100
|
const modelChoices = [{ name: "\u{1F504} auto\uFF08\u6062\u590D\u9ED8\u8BA4\uFF09", value: "auto" }];
|
|
28101
28101
|
if (config.providers) {
|
|
28102
28102
|
for (const [pid, pCfg] of Object.entries(config.providers)) {
|
|
28103
|
+
if (modelChoices.length >= 25) break;
|
|
28103
28104
|
const models = pCfg.models;
|
|
28104
28105
|
if (!models) continue;
|
|
28105
28106
|
for (const m of models) {
|
|
28107
|
+
if (modelChoices.length >= 25) break;
|
|
28106
28108
|
const ref = `${pid}/${m.id}`;
|
|
28107
28109
|
const alias = aliasByRef.get(ref);
|
|
28108
28110
|
const label = alias ? `${alias} \u2014 ${m.name || m.id}` : `${m.name || m.id} (${pid})`;
|
package/dist/main.mjs
CHANGED
|
@@ -28184,9 +28184,11 @@ ${notifications}
|
|
|
28184
28184
|
const modelChoices = [{ name: "\u{1F504} auto\uFF08\u6062\u590D\u9ED8\u8BA4\uFF09", value: "auto" }];
|
|
28185
28185
|
if (config2.providers) {
|
|
28186
28186
|
for (const [pid, pCfg] of Object.entries(config2.providers)) {
|
|
28187
|
+
if (modelChoices.length >= 25) break;
|
|
28187
28188
|
const models = pCfg.models;
|
|
28188
28189
|
if (!models) continue;
|
|
28189
28190
|
for (const m of models) {
|
|
28191
|
+
if (modelChoices.length >= 25) break;
|
|
28190
28192
|
const ref = `${pid}/${m.id}`;
|
|
28191
28193
|
const alias = aliasByRef.get(ref);
|
|
28192
28194
|
const label = alias ? `${alias} \u2014 ${m.name || m.id}` : `${m.name || m.id} (${pid})`;
|