@broberg/ai-sdk 0.61.0 → 0.62.0
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/{chunk-QVMGFHCF.js → chunk-D332SR5V.js} +72 -2
- package/dist/chunk-D332SR5V.js.map +1 -0
- package/dist/{chunk-BOZYLPIM.js → chunk-DLBOYUNF.js} +10 -10
- package/dist/chunk-DLBOYUNF.js.map +1 -0
- package/dist/{chunk-VMQSIO3J.js → chunk-KWHOVIZO.js} +39 -8
- package/dist/chunk-KWHOVIZO.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/pricing.d.ts +1 -1
- package/dist/pricing.js +2 -2
- package/dist/{registry-VqJrONWk.d.ts → registry-BEyz-O5V.d.ts} +15 -0
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BOZYLPIM.js.map +0 -1
- package/dist/chunk-QVMGFHCF.js.map +0 -1
- package/dist/chunk-VMQSIO3J.js.map +0 -1
package/dist/pricing.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ interface MediaPrice {
|
|
|
22
22
|
* ONE date for the table rather than trusting every row's own: a row added later
|
|
23
23
|
* with a fresh date would otherwise pull the table's average forward while the
|
|
24
24
|
* older rows sat unrevised. Freshness reads the OLDEST answer, and this is it. */
|
|
25
|
-
declare const MEDIA_PRICING_CHECKED_AT = "2026-
|
|
25
|
+
declare const MEDIA_PRICING_CHECKED_AT = "2026-10-11";
|
|
26
26
|
/** Default clip length billed when the caller passes no `durationSec`.
|
|
27
27
|
*
|
|
28
28
|
* It is an ASSUMPTION, not a measurement — the provider does not tell us how long
|
package/dist/pricing.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
pricingGeneratedAt,
|
|
13
13
|
resetPricingWarningForTests,
|
|
14
14
|
warnIfPricingStale
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-DLBOYUNF.js";
|
|
16
|
+
import "./chunk-D332SR5V.js";
|
|
17
17
|
export {
|
|
18
18
|
DEFAULT_CLIP_SEC,
|
|
19
19
|
MEDIA_PRICING_CHECKED_AT,
|
|
@@ -770,6 +770,11 @@ type AvailabilityStatus = "available" | "suspended" | "unknown";
|
|
|
770
770
|
/** Where a model's current availability came from: the curated default seed,
|
|
771
771
|
* or a live provider refresh (Anthropic GET /v1/models). */
|
|
772
772
|
type AvailabilitySource = "default" | "refresh";
|
|
773
|
+
/** What a model IS, so a picker can offer only chat models in a chat dropdown (F022.6). */
|
|
774
|
+
type ModelKind = "chat" | "embedding" | "judge";
|
|
775
|
+
/** The provider's price/quality step, as a picker labels it (F022.6). Not a tier:
|
|
776
|
+
* tiers route calls, grades only describe a row. */
|
|
777
|
+
type ModelGrade = "cheap" | "standard" | "strong";
|
|
773
778
|
/** One row of the shared status read — what a UI model-picker renders. */
|
|
774
779
|
interface ModelStatus {
|
|
775
780
|
/** Canonical provider model id, e.g. "claude-fable-5". */
|
|
@@ -783,6 +788,16 @@ interface ModelStatus {
|
|
|
783
788
|
/** Friendly reason, e.g. "suspended — US export-control directive (2026-06-12)". */
|
|
784
789
|
note?: string;
|
|
785
790
|
source: AvailabilitySource;
|
|
791
|
+
/** F022.6 — chat / embedding / judge. */
|
|
792
|
+
kind: ModelKind;
|
|
793
|
+
/** F022.6 — exactly one row per provider carries this: the model a picker
|
|
794
|
+
* pre-selects. Always a pinned (non-floating), priced id. */
|
|
795
|
+
default?: true;
|
|
796
|
+
/** F022.6 — present on the cheap / standard / strong pick for a provider. */
|
|
797
|
+
grade?: ModelGrade;
|
|
798
|
+
/** F022.6 — the id is a moving alias (`-latest`): the provider can swap the
|
|
799
|
+
* model behind it without a deploy. Never the default (D-385d97). */
|
|
800
|
+
floating?: true;
|
|
786
801
|
}
|
|
787
802
|
/** Result of resolveModel — the spawn / call path consumes this synchronously. */
|
|
788
803
|
interface ResolveResult {
|
package/dist/registry.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, Z as ResolveOptions, _ as ResolveResult, a0 as TierDescription, a7 as describeTier, a8 as listModels, ab as resolveModel } from './registry-
|
|
1
|
+
export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, Z as ResolveOptions, _ as ResolveResult, a0 as TierDescription, a7 as describeTier, a8 as listModels, ab as resolveModel } from './registry-BEyz-O5V.js';
|
package/dist/registry.js
CHANGED
package/package.json
CHANGED