swayrouter 1.0.5 → 1.0.6
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/package.json
CHANGED
|
@@ -269,6 +269,11 @@ export async function buildModelsList(kindFilter, options = {}) {
|
|
|
269
269
|
activeConnectionByProvider.set(conn.provider, conn);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
for (const [providerId, providerConfig] of Object.entries(PROVIDERS)) {
|
|
273
|
+
if (providerConfig?.noAuth === true && !activeConnectionByProvider.has(providerId)) {
|
|
274
|
+
activeConnectionByProvider.set(providerId, null);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
272
277
|
|
|
273
278
|
const models = [];
|
|
274
279
|
|
|
@@ -285,8 +290,7 @@ export async function buildModelsList(kindFilter, options = {}) {
|
|
|
285
290
|
models.push(entry);
|
|
286
291
|
}
|
|
287
292
|
|
|
288
|
-
|
|
289
|
-
for (const [providerId, conn] of activeConnectionByProvider.entries()) {
|
|
293
|
+
for (const [providerId, conn] of activeConnectionByProvider.entries()) {
|
|
290
294
|
if (!providerMatchesKinds(providerId, kindFilter)) continue;
|
|
291
295
|
|
|
292
296
|
const staticAlias = PROVIDER_ID_TO_ALIAS[providerId] || providerId;
|
|
@@ -399,7 +403,6 @@ export async function buildModelsList(kindFilter, options = {}) {
|
|
|
399
403
|
if (thinkingLevels) model.thinkingLevels = thinkingLevels;
|
|
400
404
|
models.push(model);
|
|
401
405
|
}
|
|
402
|
-
}
|
|
403
406
|
}
|
|
404
407
|
|
|
405
408
|
const dedupedModels = [];
|