@broberg/ai-sdk 0.64.2 → 0.65.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as CostSink, T as Tier, U as Usage, a as ChatResult, b as ChatStreamEvent, c as TranslateResult, I as ImageResult, A as AnimateResult, d as TrainStyleResult, E as EmbeddingResult, e as TranscribeResult, O as OcrResult, M as ModerationResult, J as JudgeResult, P as PodcastResult, B as BatchRequestItem, f as TierSpec, g as BatchJob, h as BatchResultItem, i as ProviderAdapter, j as ToolCall, k as Tool, l as Transport, m as Capability, R as Region, n as BudgetConfig, o as BudgetStore } from './registry-NdNUaIv4.js';
2
2
  export { p as AlignedWordTimings, q as AvailabilitySource, r as AvailabilityStatus, s as AzureWordBoundary, t as CallOptions, u as ChatRequest, v as ContentPart, D as DialogueRequest, w as DialogueTurn, x as EmbeddingRequest, y as ImageRequest, z as JudgeAnswer, F as JudgeChoiceAnswer, G as JudgeNoulAnswer, H as JudgeQuestion, K as JudgeScoreAnswer, L as LoraWeight, N as Message, Q as ModelStatus, S as ModelUnavailableError, V as ModerationItem, W as ModerationRequest, X as OcrPage, Y as OcrRequest, Z as ResolveOptions, _ as ResolveResult, $ as Role, a0 as TierDescription, a1 as TrainStyleRequest, a2 as TranscribeRequest, a3 as TtsRequest, a4 as WordTiming, a5 as alignWordTimings, a6 as classifyRegionName, a7 as describeTier, a8 as listModels, a9 as regionOfHost, aa as regionOfProvider, ab as resolveModel } from './registry-NdNUaIv4.js';
3
3
  import { z } from 'zod';
4
- export { DEFAULT_CLIP_SEC, MEDIA_PRICING_CHECKED_AT, MediaPrice, MediaUnit, PRICING_STALE_AFTER_DAYS, PricingFreshness, UnitFreshness, getMediaPrice, listMediaPrices, pricingFreshness, pricingGeneratedAt } from './pricing.js';
4
+ export { CheapestQuery, CheapestResult, CheapestRow, DEFAULT_CLIP_SEC, MEDIA_PRICING_CHECKED_AT, MediaPrice, MediaUnit, PRICING_STALE_AFTER_DAYS, PriceKind, PricingFreshness, UnitFreshness, UpstreamStatus, cheapestModels, classifyKind, getMediaPrice, listMediaPrices, pricingFreshness, pricingGeneratedAt } from './pricing.js';
5
5
 
6
6
  /** `tavily` is CMS-legacy only (F078.5): reachable by explicit provider, never routed to. */
7
7
  type SearchProviderId = "brave" | "cloudflare:ceramic" | "cloudflare:linkup" | "cloudflare:exa" | "tavily";
@@ -2346,8 +2346,8 @@ declare const falStubAdapter: ProviderAdapter;
2346
2346
  * wires the live adapters. */
2347
2347
  declare const stubProviders: Record<string, ProviderAdapter>;
2348
2348
 
2349
- declare const VERSION: "0.64.2";
2350
- declare const SDK_TAG: "@broberg/ai-sdk@0.64.2";
2349
+ declare const VERSION: "0.65.0";
2350
+ declare const SDK_TAG: "@broberg/ai-sdk@0.65.0";
2351
2351
 
2352
2352
  /** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
2353
2353
  * per-call override.
package/dist/index.js CHANGED
@@ -17,11 +17,13 @@ import {
17
17
  MEDIA_PRICING,
18
18
  MEDIA_PRICING_CHECKED_AT,
19
19
  PRICING_STALE_AFTER_DAYS,
20
+ cheapestModels,
21
+ classifyKind,
20
22
  getMediaPrice,
21
23
  listMediaPrices,
22
24
  pricingFreshness,
23
25
  pricingGeneratedAt
24
- } from "./chunk-JMRWFOAC.js";
26
+ } from "./chunk-D53S242W.js";
25
27
  import {
26
28
  PRICING,
27
29
  getPrice
@@ -4014,8 +4016,8 @@ var aiConfigSchema = z.object({
4014
4016
  import { randomUUID } from "crypto";
4015
4017
 
4016
4018
  // src/version.ts
4017
- var VERSION = "0.64.2";
4018
- var SDK_TAG = "@broberg/ai-sdk@0.64.2";
4019
+ var VERSION = "0.65.0";
4020
+ var SDK_TAG = "@broberg/ai-sdk@0.65.0";
4019
4021
 
4020
4022
  // src/cost/sinks/upmetrics.ts
4021
4023
  function isRetryableStatus(status) {
@@ -5594,8 +5596,10 @@ export {
5594
5596
  bflCredits,
5595
5597
  byokAdapter,
5596
5598
  chatInputSchema,
5599
+ cheapestModels,
5597
5600
  checkPriceDrift,
5598
5601
  checkVoice,
5602
+ classifyKind,
5599
5603
  classifyRegionName,
5600
5604
  computeCost,
5601
5605
  createAI,