@adaptic/utils 0.0.1018 → 0.0.1020

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.mjs CHANGED
@@ -64280,28 +64280,28 @@ var aliases = {
64280
64280
  {
64281
64281
  role: "secondary",
64282
64282
  provider: "deepinfra",
64283
- model_id: "zai-org/GLM-5.3-Flash",
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: "GLM-5.3 Flash",
64287
- lumic_model: "zai-org/GLM-5.3-Flash",
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: true,
64295
- supports_vision: true,
64296
- context_window: 1048576
64294
+ supports_cache_control: false,
64295
+ supports_vision: false,
64296
+ context_window: 131072
64297
64297
  },
64298
64298
  price_per_mtok: {
64299
- input: 0.15,
64300
- output: 0.5,
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, with a 1M context and JSON mode. Chosen over the faster Nemotron 3 Nano, which measured the quickest median of any candidate but rejects response_format outright with HTTP 405 — and llm.fast is a structured-output alias, so a leg that cannot express the contract is not a fallback at all, only a slower way to fail."
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",
@@ -65278,10 +65278,13 @@ function llmBreakers() {
65278
65278
  /**
65279
65279
  * Resolve the gateway transport, building it on first use.
65280
65280
  *
65281
- * @param chain The chain being served, used to derive each leg's gateway name.
65281
+ * Takes no chain: the transport is cached for the life of the process and
65282
+ * resolves each request's chain from that request's own route, so binding one
65283
+ * here would tie every later alias to whichever alias happened to build it.
65284
+ *
65282
65285
  * @returns The transport, or null when no gateway is configured.
65283
65286
  */
65284
- function gatewayFor(chain) {
65287
+ function gatewayFor() {
65285
65288
  if (config.gatewayTransport !== undefined) {
65286
65289
  return config.gatewayTransport;
65287
65290
  }