@broberg/ai-sdk 0.17.0 → 0.17.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/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1895,8 +1895,8 @@ declare const falStubAdapter: ProviderAdapter;
|
|
|
1895
1895
|
* wires the live adapters. */
|
|
1896
1896
|
declare const stubProviders: Record<string, ProviderAdapter>;
|
|
1897
1897
|
|
|
1898
|
-
declare const VERSION: "0.17.
|
|
1899
|
-
declare const SDK_TAG: "@broberg/ai-sdk@0.17.
|
|
1898
|
+
declare const VERSION: "0.17.1";
|
|
1899
|
+
declare const SDK_TAG: "@broberg/ai-sdk@0.17.1";
|
|
1900
1900
|
|
|
1901
1901
|
/** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
|
|
1902
1902
|
* per-call override. Model IDs are current at scaffold time; callers pin their
|
package/dist/index.js
CHANGED
|
@@ -2247,6 +2247,7 @@ var DEFAULT_ANIMATE_SPEC = {
|
|
|
2247
2247
|
model: "veo-3.1-generate-preview",
|
|
2248
2248
|
transport: "http"
|
|
2249
2249
|
};
|
|
2250
|
+
var ANIMATE_AUDIO_DIRECTIVE = "No spoken dialogue, no talking, no voiceover. Include natural ambient background sounds that match the environment.";
|
|
2250
2251
|
var DEFAULT_BFL_FINETUNE_SPEC = {
|
|
2251
2252
|
provider: "bfl",
|
|
2252
2253
|
model: "flux-pro-1.1-ultra-finetuned",
|
|
@@ -2535,6 +2536,7 @@ function createAI(config = {}) {
|
|
|
2535
2536
|
},
|
|
2536
2537
|
async animate(input) {
|
|
2537
2538
|
input = animateInputSchema.parse(input);
|
|
2539
|
+
const prompt = input.prompt?.trim() ? `${input.prompt.trim()} ${ANIMATE_AUDIO_DIRECTIVE}` : ANIMATE_AUDIO_DIRECTIVE;
|
|
2538
2540
|
return runCapability({
|
|
2539
2541
|
primary: { ...DEFAULT_ANIMATE_SPEC, ...input.override },
|
|
2540
2542
|
fallback: input.fallback,
|
|
@@ -2549,7 +2551,7 @@ function createAI(config = {}) {
|
|
|
2549
2551
|
if (!adapter.animate) throw new Error(`createAI: provider "${spec.provider}" does not support animate`);
|
|
2550
2552
|
return adapter.animate({
|
|
2551
2553
|
image: input.image,
|
|
2552
|
-
prompt
|
|
2554
|
+
prompt,
|
|
2553
2555
|
durationSec: input.durationSec,
|
|
2554
2556
|
resolution: input.resolution,
|
|
2555
2557
|
spec
|
|
@@ -2807,8 +2809,8 @@ var stubProviders = {
|
|
|
2807
2809
|
};
|
|
2808
2810
|
|
|
2809
2811
|
// src/version.ts
|
|
2810
|
-
var VERSION = "0.17.
|
|
2811
|
-
var SDK_TAG = "@broberg/ai-sdk@0.17.
|
|
2812
|
+
var VERSION = "0.17.1";
|
|
2813
|
+
var SDK_TAG = "@broberg/ai-sdk@0.17.1";
|
|
2812
2814
|
|
|
2813
2815
|
// src/availability/refresh.ts
|
|
2814
2816
|
var NOT_REFRESHED = { refreshed: false, checked: 0, markedUnavailable: [] };
|