@nodaro/shared 2.21.1 → 2.22.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.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/model-constants.ts +23 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/model-constants.ts
CHANGED
|
@@ -2105,6 +2105,29 @@ export function videoProviderRequiresImage(provider: string | undefined): boolea
|
|
|
2105
2105
|
return !!provider && VIDEO_PROVIDERS_REQUIRING_IMAGE.has(provider)
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
|
+
/**
|
|
2109
|
+
* True when the provider's image-to-video path FOLDS a lone closing frame into
|
|
2110
|
+
* its reference images — i.e. an end frame with no start frame is a reference
|
|
2111
|
+
* the model actually receives, not a half-formed frame pair.
|
|
2112
|
+
*
|
|
2113
|
+
* The Seedance 2.x, MiniMax Hailuo 3 and Wan 3 families all assemble their KIE
|
|
2114
|
+
* input through the shared `resolveSeedance2Inputs` (`@nodaro/prompts`), whose
|
|
2115
|
+
* reference mode takes a lone last frame as the sole reference image plus a
|
|
2116
|
+
* closing-frame prompt hint. NOTHING else does: VEO ships `[imageUrl,
|
|
2117
|
+
* endFrameUrl]` verbatim (a lone end frame would reach KIE as `[null, url]`),
|
|
2118
|
+
* the Gemini Omni branch drops the frame when there is no start frame, and the
|
|
2119
|
+
* generic KIE path sends `end_frame` with no image param at all. So the
|
|
2120
|
+
* exemption is keyed to the FOLD, not to "carries image references" — the
|
|
2121
|
+
* catalog has no capability for it, and these three family predicates are the
|
|
2122
|
+
* same membership the provider layer itself branches on (the backend's
|
|
2123
|
+
* `kie/video.ts::applySeedance2Params` / `applyMinimaxH3Params` / `runWan3`).
|
|
2124
|
+
* A ref-capable provider that grows the fold gets the exemption by joining a
|
|
2125
|
+
* family here; one that does not keeps the honest `image_required` 400.
|
|
2126
|
+
*/
|
|
2127
|
+
export function videoProviderFoldsLoneEndFrame(provider: string): boolean {
|
|
2128
|
+
return isSeedance2Provider(provider) || isMinimaxH3Provider(provider) || isWan3Provider(provider)
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2108
2131
|
/**
|
|
2109
2132
|
* Video models where enabling audio/sound incurs an additional cost.
|
|
2110
2133
|
* The audio addon is expressed as a separate composite identifier suffix.
|