@adaptic/utils 0.0.1017 → 0.0.1019
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/index.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/dist/types/llm/alias-client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -64280,28 +64280,28 @@ var aliases = {
|
|
|
64280
64280
|
{
|
|
64281
64281
|
role: "secondary",
|
|
64282
64282
|
provider: "deepinfra",
|
|
64283
|
-
model_id: "
|
|
64283
|
+
model_id: "openai/gpt-oss-20b",
|
|
64284
64284
|
model_id_status: "confirmed",
|
|
64285
64285
|
model_id_source: "DeepInfra /v1/openai/models catalogue queried against the live account 2026-09-11; tool-calling and latency verified by direct call on the same account",
|
|
64286
|
-
model_family: "
|
|
64287
|
-
lumic_model: "
|
|
64286
|
+
model_family: "gpt-oss-20B",
|
|
64287
|
+
lumic_model: "openai/gpt-oss-20b",
|
|
64288
64288
|
params: {
|
|
64289
64289
|
temperature: null,
|
|
64290
64290
|
max_output_tokens: null,
|
|
64291
64291
|
supports_temperature: true,
|
|
64292
64292
|
supports_json_schema: true,
|
|
64293
64293
|
supports_tools: true,
|
|
64294
|
-
supports_cache_control:
|
|
64295
|
-
supports_vision:
|
|
64296
|
-
context_window:
|
|
64294
|
+
supports_cache_control: false,
|
|
64295
|
+
supports_vision: false,
|
|
64296
|
+
context_window: 131072
|
|
64297
64297
|
},
|
|
64298
64298
|
price_per_mtok: {
|
|
64299
|
-
input: 0.
|
|
64300
|
-
output: 0.
|
|
64299
|
+
input: 0.03,
|
|
64300
|
+
output: 0.14,
|
|
64301
64301
|
as_of: "2026-09-11",
|
|
64302
64302
|
source: "DeepInfra /v1/openai/models catalogue queried against the live account 2026-09-11; tool-calling and latency verified by direct call on the same account"
|
|
64303
64303
|
},
|
|
64304
|
-
notes: "A different lineage from the primary,
|
|
64304
|
+
notes: "A different lineage from the primary, so one family's regression cannot take both serving legs, and fast enough to be a real fallback: median 5.5s against this alias's 30s hot-path budget on a production-scale prompt. It replaces GLM-5.3-Flash, which was chosen for the same lineage reason on a TRIVIAL prompt and measured 13-23s once put against production-sized input — close enough to the budget that the fallback was timing out and returning 408 instead of covering the primary. A fallback with no latency headroom is not a fallback; it is a slower way to fail, which is the exact test this alias's previous secondary was chosen to satisfy and then failed itself."
|
|
64305
64305
|
},
|
|
64306
64306
|
{
|
|
64307
64307
|
role: "closed_incumbent",
|
|
@@ -65293,7 +65293,16 @@ function gatewayFor(chain) {
|
|
|
65293
65293
|
gatewayTransport = createGatewayTransport({
|
|
65294
65294
|
baseUrl,
|
|
65295
65295
|
apiKeyEnv: config.gatewayApiKeyEnv ?? DEFAULT_GATEWAY_KEY_ENV,
|
|
65296
|
-
|
|
65296
|
+
// The chain is re-resolved from the request's own route rather than
|
|
65297
|
+
// captured from the caller above. The transport is cached for the life of
|
|
65298
|
+
// the process, so a captured chain would bind every later alias to
|
|
65299
|
+
// whichever alias happened to dispatch first: its head leg would never
|
|
65300
|
+
// match, would be addressed as "<alias>.fallback.primary" — a name the
|
|
65301
|
+
// gateway does not register — and the 400 would be absorbed by the
|
|
65302
|
+
// fallback chain. The call still succeeds, from the SECONDARY leg, which
|
|
65303
|
+
// is why this reads as healthy traffic while every alias but one quietly
|
|
65304
|
+
// stops using the model it was chosen for.
|
|
65305
|
+
modelNameFor: (request) => gatewayModelNameFor(request.route, resolveChain(request.route.alias, { isolated: request.route.isolated })),
|
|
65297
65306
|
});
|
|
65298
65307
|
}
|
|
65299
65308
|
return gatewayTransport;
|
|
@@ -65381,7 +65390,7 @@ async function callLLMByAlias(content, responseFormat = "text", options) {
|
|
|
65381
65390
|
cost: 0,
|
|
65382
65391
|
});
|
|
65383
65392
|
}
|
|
65384
|
-
const gateway = gatewayFor(
|
|
65393
|
+
const gateway = gatewayFor();
|
|
65385
65394
|
const attemptLog = [];
|
|
65386
65395
|
/**
|
|
65387
65396
|
* Run the chain, falling back from the gateway to the degraded direct path
|