@broberg/ai-sdk 0.55.2 → 0.55.3
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.d.ts
CHANGED
|
@@ -2950,8 +2950,8 @@ declare const falStubAdapter: ProviderAdapter;
|
|
|
2950
2950
|
* wires the live adapters. */
|
|
2951
2951
|
declare const stubProviders: Record<string, ProviderAdapter>;
|
|
2952
2952
|
|
|
2953
|
-
declare const VERSION: "0.55.
|
|
2954
|
-
declare const SDK_TAG: "@broberg/ai-sdk@0.55.
|
|
2953
|
+
declare const VERSION: "0.55.3";
|
|
2954
|
+
declare const SDK_TAG: "@broberg/ai-sdk@0.55.3";
|
|
2955
2955
|
|
|
2956
2956
|
/** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
|
|
2957
2957
|
* per-call override.
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
listMediaPrices,
|
|
22
22
|
pricingFreshness,
|
|
23
23
|
pricingGeneratedAt
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ILZ33HZO.js";
|
|
25
25
|
|
|
26
26
|
// src/cost/default-hosts.ts
|
|
27
27
|
var DEFAULT_BASE_URLS = {
|
|
@@ -3541,8 +3541,8 @@ var aiConfigSchema = z.object({
|
|
|
3541
3541
|
import { randomUUID } from "crypto";
|
|
3542
3542
|
|
|
3543
3543
|
// src/version.ts
|
|
3544
|
-
var VERSION = "0.55.
|
|
3545
|
-
var SDK_TAG = "@broberg/ai-sdk@0.55.
|
|
3544
|
+
var VERSION = "0.55.3";
|
|
3545
|
+
var SDK_TAG = "@broberg/ai-sdk@0.55.3";
|
|
3546
3546
|
|
|
3547
3547
|
// src/cost/sinks/upmetrics.ts
|
|
3548
3548
|
function isRetryableStatus(status) {
|
|
@@ -4529,6 +4529,10 @@ function diffCatalogue(fetched, opts = {}) {
|
|
|
4529
4529
|
if (!fetchedByKey.has(k)) fetchedByKey.set(k, m);
|
|
4530
4530
|
}
|
|
4531
4531
|
}
|
|
4532
|
+
for (const m of fetched) {
|
|
4533
|
+
const k = catalogueKey({ provider: m.provider, model: undatedBase(m.model) });
|
|
4534
|
+
if (!fetchedByKey.has(k)) fetchedByKey.set(k, m);
|
|
4535
|
+
}
|
|
4532
4536
|
const known = knownKeys();
|
|
4533
4537
|
const trackedBrands = /* @__PURE__ */ new Map();
|
|
4534
4538
|
for (const key of Object.keys(PRICING)) {
|