@broberg/ai-sdk 0.74.1 → 0.75.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-WDGXCBD2.js → chunk-XWWFXMDP.js} +3 -2
- package/dist/chunk-XWWFXMDP.js.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/pricing.js +1 -1
- package/dist/{registry-Dwe4cmUM.d.ts → registry-CsDDEHEr.d.ts} +2 -2
- package/dist/registry.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-WDGXCBD2.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as Usage, C as CostSink, T as Tier, 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, V as VectorizeResult, 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-
|
|
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, W as ModerationItem, X as ModerationRequest, Y as OcrPage, Z as OcrRequest, _ as ResolveOptions, $ as ResolveResult, a0 as Role, a1 as TierDescription, a2 as TrainStyleRequest, a3 as TranscribeRequest, a4 as TtsRequest, a5 as WordTiming, a6 as alignWordTimings, a7 as classifyRegionName, a8 as describeTier, a9 as listModels, aa as regionOfHost, ab as regionOfProvider, ac as resolveModel } from './registry-
|
|
1
|
+
import { U as Usage, C as CostSink, T as Tier, 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, V as VectorizeResult, 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-CsDDEHEr.js';
|
|
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, W as ModerationItem, X as ModerationRequest, Y as OcrPage, Z as OcrRequest, _ as ResolveOptions, $ as ResolveResult, a0 as Role, a1 as TierDescription, a2 as TrainStyleRequest, a3 as TranscribeRequest, a4 as TtsRequest, a5 as WordTiming, a6 as alignWordTimings, a7 as classifyRegionName, a8 as describeTier, a9 as listModels, aa as regionOfHost, ab as regionOfProvider, ac as resolveModel } from './registry-CsDDEHEr.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
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
|
|
|
@@ -1169,7 +1169,7 @@ interface AiClient {
|
|
|
1169
1169
|
translate(input: TranslateInput): Promise<TranslateResult>;
|
|
1170
1170
|
image(input: ImageInput): Promise<ImageResult>;
|
|
1171
1171
|
/** Image-to-video (F024) — animate a still into a short clip → { url, usage }.
|
|
1172
|
-
*
|
|
1172
|
+
* bfl (FLUX 3 Video, EU) by default since F092; override for other routes.
|
|
1173
1173
|
*
|
|
1174
1174
|
* THIS one is the tooltip a consumer sees, because it sits on the method they call.
|
|
1175
1175
|
* F045 fixed the same stale "fal." on ProviderAdapter and missed this copy — super
|
|
@@ -1587,8 +1587,8 @@ declare const falStubAdapter: ProviderAdapter;
|
|
|
1587
1587
|
* wires the live adapters. */
|
|
1588
1588
|
declare const stubProviders: Record<string, ProviderAdapter>;
|
|
1589
1589
|
|
|
1590
|
-
declare const VERSION: "0.
|
|
1591
|
-
declare const SDK_TAG: "@broberg/ai-sdk@0.
|
|
1590
|
+
declare const VERSION: "0.75.0";
|
|
1591
|
+
declare const SDK_TAG: "@broberg/ai-sdk@0.75.0";
|
|
1592
1592
|
|
|
1593
1593
|
/** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
|
|
1594
1594
|
* per-call override.
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
listMediaPrices,
|
|
24
24
|
pricingFreshness,
|
|
25
25
|
pricingGeneratedAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XWWFXMDP.js";
|
|
27
27
|
import {
|
|
28
28
|
PRICING,
|
|
29
29
|
getPrice
|
|
@@ -4351,7 +4351,7 @@ var imageInputSchema = z.object({
|
|
|
4351
4351
|
});
|
|
4352
4352
|
var animateInputSchema = z.object({
|
|
4353
4353
|
/** Input image: a URL or raw bytes. Where bytes are uploaded is the ADAPTER's
|
|
4354
|
-
* business —
|
|
4354
|
+
* business — the BFL default sends them as keyframes; other routes upload or inline them.
|
|
4355
4355
|
* Omit for text→video (F079.2): only bfl/flux-3-video supports it. */
|
|
4356
4356
|
image: z.union([z.string(), z.instanceof(Uint8Array)]).optional(),
|
|
4357
4357
|
/** Motion/scene prompt. */
|
|
@@ -4521,8 +4521,8 @@ var aiConfigSchema = z.object({
|
|
|
4521
4521
|
import { randomUUID } from "crypto";
|
|
4522
4522
|
|
|
4523
4523
|
// src/version.ts
|
|
4524
|
-
var VERSION = "0.
|
|
4525
|
-
var SDK_TAG = "@broberg/ai-sdk@0.
|
|
4524
|
+
var VERSION = "0.75.0";
|
|
4525
|
+
var SDK_TAG = "@broberg/ai-sdk@0.75.0";
|
|
4526
4526
|
|
|
4527
4527
|
// src/cost/sinks/upmetrics.ts
|
|
4528
4528
|
function isRetryableStatus(status) {
|
|
@@ -4821,8 +4821,8 @@ var DEFAULT_TRAINSTYLE_SPEC = {
|
|
|
4821
4821
|
transport: "http"
|
|
4822
4822
|
};
|
|
4823
4823
|
var DEFAULT_ANIMATE_SPEC = {
|
|
4824
|
-
provider: "
|
|
4825
|
-
model: "
|
|
4824
|
+
provider: "bfl",
|
|
4825
|
+
model: "flux-3-video",
|
|
4826
4826
|
transport: "http"
|
|
4827
4827
|
};
|
|
4828
4828
|
var ANIMATE_AUDIO_DIRECTIVE = "No spoken dialogue, no talking, no voiceover. Include natural ambient background sounds that match the environment.";
|