anygate 0.5.5 → 0.5.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/LICENSE +21 -21
- package/README.md +613 -613
- package/dist/{chunk-YYSUTRMV.js → chunk-VKROC37K.js} +1 -1
- package/dist/chunk-VKROC37K.js.map +1 -0
- package/dist/{chunk-CH5IEXJN.js → chunk-ZEO4BR64.js} +191 -18
- package/dist/chunk-ZEO4BR64.js.map +1 -0
- package/dist/cli.js +9 -4
- package/dist/cli.js.map +1 -1
- package/dist/{command-QEYVYS7O.js → command-PW7KW3PP.js} +7 -5
- package/dist/command-PW7KW3PP.js.map +1 -0
- package/dist/{provider-templates-75KU6VA6.js → provider-templates-TWR5XSYI.js} +2 -2
- package/dist/ui/dist/assets/{index-CeN2cmwU.css → index-CfL9bOYD.css} +1 -1
- package/dist/ui/dist/assets/index-Ck-e8hv_.js +5 -0
- package/dist/ui/dist/index.html +3 -3
- package/package.json +94 -94
- package/dist/chunk-CH5IEXJN.js.map +0 -1
- package/dist/chunk-YYSUTRMV.js.map +0 -1
- package/dist/command-QEYVYS7O.js.map +0 -1
- package/dist/ui/dist/assets/index-BBg1LGms.js +0 -5
- /package/dist/{provider-templates-75KU6VA6.js.map → provider-templates-TWR5XSYI.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -135,6 +135,7 @@ import {
|
|
|
135
135
|
removeProviderFromRegistry,
|
|
136
136
|
resolveApiKey,
|
|
137
137
|
resolveContextWindow,
|
|
138
|
+
resolveInputTypes,
|
|
138
139
|
resolveModelSource,
|
|
139
140
|
resolveProviderCredential,
|
|
140
141
|
resolveProviderTemplate,
|
|
@@ -169,14 +170,14 @@ import {
|
|
|
169
170
|
validateCustomEndpointUrl,
|
|
170
171
|
writeSecureLogLine,
|
|
171
172
|
zenRegistryStub
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-ZEO4BR64.js";
|
|
173
174
|
import {
|
|
174
175
|
filterTemplates,
|
|
175
176
|
getTemplateById,
|
|
176
177
|
listAddableTemplates,
|
|
177
178
|
listSupportedTemplates,
|
|
178
179
|
listVisibleOAuthTemplates
|
|
179
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-VKROC37K.js";
|
|
180
181
|
|
|
181
182
|
// src/cli.ts
|
|
182
183
|
import pc15 from "picocolors";
|
|
@@ -6460,6 +6461,7 @@ function applyRouteContextBounds(entry, route) {
|
|
|
6460
6461
|
);
|
|
6461
6462
|
entry.maxTokens = maxTokenLimit;
|
|
6462
6463
|
entry.maxOutputTokens = maxOutputTokens;
|
|
6464
|
+
entry.supportsImages = route.inputTypes?.includes("image") ?? false;
|
|
6463
6465
|
return withCascadeCheckpointer(entry, checkpointTokenLimit);
|
|
6464
6466
|
}
|
|
6465
6467
|
var GATEWAY_CASCADE_FALLBACK_ENTRY = withCascadeCheckpointer({
|
|
@@ -6590,6 +6592,8 @@ function buildAntigravityRoutes(resolvedFavorites, maxRoutes = MAX_MODEL_CATALOG
|
|
|
6590
6592
|
const baseURL = favModel.apiBaseUrl || favModel.completionsUrl || void 0;
|
|
6591
6593
|
const contextWindow = favModel.contextWindow;
|
|
6592
6594
|
const modelFormat = favModel.modelFormat;
|
|
6595
|
+
const family = favModel.family || favModel.brand || "";
|
|
6596
|
+
const inputTypes = resolveInputTypes(family, fav.providerId, modelId);
|
|
6593
6597
|
routes.push({
|
|
6594
6598
|
catalogId,
|
|
6595
6599
|
providerId: fav.providerId,
|
|
@@ -6604,7 +6608,8 @@ function buildAntigravityRoutes(resolvedFavorites, maxRoutes = MAX_MODEL_CATALOG
|
|
|
6604
6608
|
...fav.oauthAccountId ? { oauthAccountId: fav.oauthAccountId } : {},
|
|
6605
6609
|
...fav.providerData ? { providerData: fav.providerData } : {},
|
|
6606
6610
|
baseURL,
|
|
6607
|
-
contextWindow
|
|
6611
|
+
contextWindow,
|
|
6612
|
+
inputTypes
|
|
6608
6613
|
});
|
|
6609
6614
|
}
|
|
6610
6615
|
return applyUniqueAntigravityRouteLabels(routes);
|
|
@@ -12869,7 +12874,7 @@ Error: ${parsed.error}
|
|
|
12869
12874
|
console.log("Usage: anygate ui [--trace]\n\nOpen the settings UI in your browser.");
|
|
12870
12875
|
return 0;
|
|
12871
12876
|
}
|
|
12872
|
-
const { runUiCommand } = await import("./command-
|
|
12877
|
+
const { runUiCommand } = await import("./command-PW7KW3PP.js");
|
|
12873
12878
|
return runUiCommand({ trace: parsed.trace });
|
|
12874
12879
|
}
|
|
12875
12880
|
if (parsed.command === "models") {
|