@broberg/ai-sdk 0.73.0 → 0.74.1

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/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-10-11";
25
+ declare const MEDIA_PRICING_CHECKED_AT = "2026-11-17";
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
@@ -14,7 +14,7 @@ import {
14
14
  pricingGeneratedAt,
15
15
  resetPricingWarningForTests,
16
16
  warnIfPricingStale
17
- } from "./chunk-XKN2PYBQ.js";
17
+ } from "./chunk-WDGXCBD2.js";
18
18
  import "./chunk-6O6HO7M3.js";
19
19
  export {
20
20
  DEFAULT_CLIP_SEC,
@@ -344,6 +344,8 @@ interface CallOptions {
344
344
  interface ChatRequest {
345
345
  messages: Message[];
346
346
  spec: TierSpec;
347
+ /** F090 — abort the provider request (timeoutMs / caller signal combined). */
348
+ signal?: AbortSignal;
347
349
  tools?: Tool[];
348
350
  maxTokens?: number;
349
351
  /** F039 — Mistral prompt caching. A stable application-level id for "the same
@@ -1 +1 @@
1
- export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, _ as ResolveOptions, $ as ResolveResult, a1 as TierDescription, a8 as describeTier, a9 as listModels, ac as resolveModel } from './registry-CCKJyveA.js';
1
+ export { q as AvailabilitySource, r as AvailabilityStatus, Q as ModelStatus, S as ModelUnavailableError, _ as ResolveOptions, $ as ResolveResult, a1 as TierDescription, a8 as describeTier, a9 as listModels, ac as resolveModel } from './registry-Dwe4cmUM.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broberg/ai-sdk",
3
- "version": "0.73.0",
3
+ "version": "0.74.1",
4
4
  "description": "Unified AI/LLM SDK — one facade, all providers, all capabilities, first-class cost control on every call.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",