@nodaro/shared 3.62.0 → 3.64.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-C7POAYFE.js → chunk-36VWLB4J.js} +3 -3
- package/dist/{chunk-C7POAYFE.js.map → chunk-36VWLB4J.js.map} +1 -1
- package/dist/{chunk-S24ZBUB4.js → chunk-3AYM47GW.js} +6 -32
- package/dist/chunk-3AYM47GW.js.map +1 -0
- package/dist/{chunk-YCXRSWCQ.js → chunk-3KTWYYCN.js} +8 -5
- package/dist/chunk-3KTWYYCN.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4IUE2JB7.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4IUE2JB7.js.map} +1 -1
- package/dist/{chunk-MYJQELFN.cjs → chunk-5OBTGNUQ.cjs} +547 -29
- package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-67CMMTLN.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
- package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
- package/dist/chunk-6BRWPJPP.cjs.map +1 -0
- package/dist/{chunk-S5TMRJMX.js → chunk-6YIV37V7.js} +4 -4
- package/dist/{chunk-S5TMRJMX.js.map → chunk-6YIV37V7.js.map} +1 -1
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-7AJGUI7L.cjs} +202 -16
- package/dist/chunk-7AJGUI7L.cjs.map +1 -0
- package/dist/{chunk-JZGZ26YB.js → chunk-7KQ6W5DS.js} +4 -4
- package/dist/{chunk-JZGZ26YB.js.map → chunk-7KQ6W5DS.js.map} +1 -1
- package/dist/{chunk-IWWVPR3W.cjs → chunk-ACZZHHFZ.cjs} +149 -34
- package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
- package/dist/{chunk-2W745U4A.cjs → chunk-AZNZ5WNZ.cjs} +42 -70
- package/dist/chunk-AZNZ5WNZ.cjs.map +1 -0
- package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
- package/dist/chunk-BQYCZLMF.js.map +1 -0
- package/dist/chunk-CHS2SIP6.cjs +504 -0
- package/dist/chunk-CHS2SIP6.cjs.map +1 -0
- package/dist/{chunk-CIPPPT7E.cjs → chunk-CHTZZRAL.cjs} +6 -6
- package/dist/{chunk-CIPPPT7E.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
- package/dist/{chunk-AOJ6B7K4.cjs → chunk-D4KWNDPH.cjs} +12 -12
- package/dist/chunk-D4KWNDPH.cjs.map +1 -0
- package/dist/{chunk-5YYN5X57.js → chunk-DZ4IOP3Q.js} +536 -30
- package/dist/chunk-DZ4IOP3Q.js.map +1 -0
- package/dist/{chunk-VACPZPUA.cjs → chunk-EXEVT6D2.cjs} +15 -5
- package/dist/chunk-EXEVT6D2.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-FHGRKQVZ.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
- package/dist/{chunk-KJSRPHJ2.cjs → chunk-GTWUS6MQ.cjs} +165 -54
- package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
- package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
- package/dist/chunk-H5KHWTAE.js.map +1 -0
- package/dist/{chunk-G3KVK7OU.cjs → chunk-HDPJNNMF.cjs} +21 -21
- package/dist/{chunk-G3KVK7OU.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
- package/dist/{chunk-3OYO3XCC.js → chunk-IYSOVS7O.js} +118 -24
- package/dist/chunk-IYSOVS7O.js.map +1 -0
- package/dist/{chunk-AFYTX4AI.cjs → chunk-J6B7J73J.cjs} +110 -50
- package/dist/chunk-J6B7J73J.cjs.map +1 -0
- package/dist/{chunk-I2RQB7VG.js → chunk-KB2SQAR3.js} +3 -3
- package/dist/{chunk-I2RQB7VG.js.map → chunk-KB2SQAR3.js.map} +1 -1
- package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
- package/dist/chunk-KSHAAPQF.cjs.map +1 -0
- package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
- package/dist/chunk-NIAFR5EE.js.map +1 -0
- package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
- package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
- package/dist/{chunk-IDTKF5EX.cjs → chunk-O4RPXBDZ.cjs} +12 -8
- package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
- package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
- package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
- package/dist/{chunk-PTD6EDUU.js → chunk-OBOOHG3N.js} +13 -4
- package/dist/chunk-OBOOHG3N.js.map +1 -0
- package/dist/{chunk-2D5LQFV4.cjs → chunk-OOZW2MM6.cjs} +9 -9
- package/dist/{chunk-2D5LQFV4.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
- package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
- package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
- package/dist/{chunk-G4U3HW6W.js → chunk-PJJAZQVZ.js} +3 -3
- package/dist/{chunk-G4U3HW6W.js.map → chunk-PJJAZQVZ.js.map} +1 -1
- package/dist/{chunk-E2HZTGYX.js → chunk-Q2Y4JHF7.js} +7 -7
- package/dist/chunk-Q2Y4JHF7.js.map +1 -0
- package/dist/{chunk-FVII3KHN.js → chunk-QYU7J5EQ.js} +198 -17
- package/dist/chunk-QYU7J5EQ.js.map +1 -0
- package/dist/{chunk-JJNNM23P.js → chunk-S3UGLZSF.js} +3 -3
- package/dist/{chunk-JJNNM23P.js.map → chunk-S3UGLZSF.js.map} +1 -1
- package/dist/{chunk-CC4V2B7S.js → chunk-SHH2T4CR.js} +3 -3
- package/dist/{chunk-CC4V2B7S.js.map → chunk-SHH2T4CR.js.map} +1 -1
- package/dist/{chunk-4ZEFP2FQ.cjs → chunk-SPAHI7DY.cjs} +4 -4
- package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
- package/dist/{chunk-Y6X7UJSD.js → chunk-SXHHLZ22.js} +122 -15
- package/dist/chunk-SXHHLZ22.js.map +1 -0
- package/dist/{chunk-HRY7KGAE.cjs → chunk-T2OVDF2M.cjs} +6 -6
- package/dist/{chunk-HRY7KGAE.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
- package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
- package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
- package/dist/{chunk-NGKKNSK6.js → chunk-TPQJKS7D.js} +139 -16
- package/dist/chunk-TPQJKS7D.js.map +1 -0
- package/dist/{chunk-N7OUQK7E.cjs → chunk-TQW3R44P.cjs} +8 -8
- package/dist/{chunk-N7OUQK7E.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
- package/dist/{chunk-GSFB537T.js → chunk-TTGZ2L3O.js} +23 -4
- package/dist/chunk-TTGZ2L3O.js.map +1 -0
- package/dist/{chunk-SYWR5G3T.js → chunk-VPTA4Z7G.js} +54 -7
- package/dist/chunk-VPTA4Z7G.js.map +1 -0
- package/dist/{chunk-2HZGDZZN.cjs → chunk-VZ6TE23U.cjs} +6 -6
- package/dist/{chunk-2HZGDZZN.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
- package/dist/{chunk-TRVWMKNE.cjs → chunk-W6VJAUGM.cjs} +285 -64
- package/dist/chunk-W6VJAUGM.cjs.map +1 -0
- package/dist/{chunk-UDDVDQMF.js → chunk-W7KHHNZR.js} +235 -37
- package/dist/chunk-W7KHHNZR.js.map +1 -0
- package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-6CSXMWL4.cjs → chunk-YQV53HRR.cjs} +27 -4
- package/dist/chunk-YQV53HRR.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-ZI3QDUHO.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-ZI3QDUHO.js.map} +1 -1
- package/dist/entries/apps.cjs +43 -42
- package/dist/entries/apps.js +8 -7
- package/dist/entries/captions.cjs +38 -30
- package/dist/entries/captions.d.cts +47 -1
- package/dist/entries/captions.d.ts +47 -1
- package/dist/entries/captions.js +1 -1
- package/dist/entries/credits.cjs +354 -174
- package/dist/entries/credits.d.cts +378 -27
- package/dist/entries/credits.d.ts +378 -27
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +108 -7
- package/dist/entries/llm-models.d.ts +108 -7
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +63 -63
- package/dist/entries/media.d.cts +8 -0
- package/dist/entries/media.d.ts +8 -0
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +161 -105
- package/dist/entries/model-catalog.d.cts +109 -22
- package/dist/entries/model-catalog.d.ts +109 -22
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +466 -322
- package/dist/entries/models.d.cts +71 -5
- package/dist/entries/models.d.ts +71 -5
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +226 -209
- package/dist/entries/nodes.d.cts +66 -7
- package/dist/entries/nodes.d.ts +66 -7
- package/dist/entries/nodes.js +10 -9
- package/dist/entries/pipeline.cjs +156 -152
- package/dist/entries/pipeline.d.cts +14 -4
- package/dist/entries/pipeline.d.ts +14 -4
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +29 -29
- package/dist/entries/runtime-config.d.cts +10 -7
- package/dist/entries/runtime-config.d.ts +10 -7
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +154 -150
- package/dist/entries/video.d.cts +11 -2
- package/dist/entries/video.d.ts +11 -2
- package/dist/entries/video.js +6 -6
- package/dist/entries/workflow.cjs +150 -150
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +2136 -1704
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +27 -27
- package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-Cf9fkEUp.d.cts} +45 -2
- package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-Cf9fkEUp.d.ts} +45 -2
- package/dist/{model-constants-B88p6XR0.d.ts → model-constants-BxjiWVQ9.d.ts} +215 -32
- package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-C_Nyft_i.d.cts} +215 -32
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +359 -39
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
- package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
- package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
- package/src/__tests__/flux-3-klein.test.ts +203 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
- package/src/__tests__/gvp-supported-providers.test.ts +27 -2
- package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
- package/src/__tests__/lip-sync-levers.test.ts +31 -0
- package/src/__tests__/llm-models.test.ts +139 -12
- package/src/__tests__/llm-price-key.test.ts +164 -1
- package/src/__tests__/model-makers.test.ts +3 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/node-runtime-keys.test.ts +7 -0
- package/src/__tests__/normalize-node-params.test.ts +172 -1
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
- package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
- package/src/__tests__/seedance-task-type.test.ts +13 -3
- package/src/__tests__/sequence-execution.test.ts +22 -1
- package/src/__tests__/suno-credit-type.test.ts +21 -2
- package/src/__tests__/transcribe-capabilities.test.ts +41 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
- package/src/__tests__/video-analysis-pricing.test.ts +10 -9
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/caption-styles.ts +62 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/add-captions-nemotron.ts +73 -0
- package/src/credit-estimators/index.ts +20 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-identifiers.ts +351 -41
- package/src/entries/captions.ts +2 -0
- package/src/entries/credits.ts +37 -2
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +22 -0
- package/src/entries/models.ts +50 -0
- package/src/entries/nodes.ts +4 -0
- package/src/entries/pipeline.ts +1 -1
- package/src/entries/video.ts +1 -1
- package/src/flux-3-klein.ts +69 -0
- package/src/freecut-protocol.ts +8 -0
- package/src/input-image-pricing.ts +23 -6
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +305 -16
- package/src/model-catalog.ts +529 -28
- package/src/model-constants.ts +417 -41
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +6 -0
- package/src/node-runtime-keys.ts +3 -0
- package/src/normalize-node-params.ts +172 -3
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/seedance-extend-rate.ts +116 -0
- package/src/sequence-execution.ts +24 -0
- package/src/transcribe-preflight.ts +81 -7
- package/src/video-analysis-pricing.ts +28 -15
- package/src/video-duration.ts +9 -0
- package/src/video-ui-defaults.ts +5 -3
- package/src/video-upscale-params.ts +67 -0
- package/dist/chunk-2W745U4A.cjs.map +0 -1
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-3OYO3XCC.js.map +0 -1
- package/dist/chunk-5YYN5X57.js.map +0 -1
- package/dist/chunk-6CSXMWL4.cjs.map +0 -1
- package/dist/chunk-6G7NN4S4.js.map +0 -1
- package/dist/chunk-AFYTX4AI.cjs.map +0 -1
- package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
- package/dist/chunk-BLJUCPMV.cjs.map +0 -1
- package/dist/chunk-E2HZTGYX.js.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-GSFB537T.js.map +0 -1
- package/dist/chunk-HSHCCBIV.js.map +0 -1
- package/dist/chunk-IDTKF5EX.cjs.map +0 -1
- package/dist/chunk-IWWVPR3W.cjs.map +0 -1
- package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
- package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
- package/dist/chunk-MYJQELFN.cjs.map +0 -1
- package/dist/chunk-NGKKNSK6.js.map +0 -1
- package/dist/chunk-PTD6EDUU.js.map +0 -1
- package/dist/chunk-Q6IES3U2.js.map +0 -1
- package/dist/chunk-QWYFHQYK.cjs +0 -357
- package/dist/chunk-QWYFHQYK.cjs.map +0 -1
- package/dist/chunk-S24ZBUB4.js.map +0 -1
- package/dist/chunk-SYWR5G3T.js.map +0 -1
- package/dist/chunk-TRVWMKNE.cjs.map +0 -1
- package/dist/chunk-UDDVDQMF.js.map +0 -1
- package/dist/chunk-VACPZPUA.cjs.map +0 -1
- package/dist/chunk-WRSWH7US.cjs.map +0 -1
- package/dist/chunk-Y6X7UJSD.js.map +0 -1
- package/dist/chunk-YCXRSWCQ.js.map +0 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest"
|
|
2
|
+
import { MODEL_CATALOG, MODEL_MAKERS, defaultResolutionFor, modelMakerOf, normalizeVideoRequestParams } from "../model-catalog.js"
|
|
3
|
+
import {
|
|
4
|
+
IMAGE_TO_VIDEO_PROVIDERS,
|
|
5
|
+
TEXT_TO_VIDEO_PROVIDERS,
|
|
6
|
+
VIDEO_GEN_PROVIDERS,
|
|
7
|
+
PIXVERSE_V6_MAX_PROVIDER,
|
|
8
|
+
PIXVERSE_V6_MAX_DEFAULT_QUALITY,
|
|
9
|
+
isPixverseV6MaxProvider,
|
|
10
|
+
normalizePixverseV6MaxQuality,
|
|
11
|
+
AUDIO_ADDON_PROVIDERS,
|
|
12
|
+
DURATION_PRICED_PROVIDERS,
|
|
13
|
+
RESOLUTION_DURATION_PRICING,
|
|
14
|
+
PRICING_DEFAULT_RESOLUTION,
|
|
15
|
+
VIDEO_DURATION_TIERS,
|
|
16
|
+
VIDEO_REF_LIMITS_BY_PROVIDER,
|
|
17
|
+
VIDEO_VARIABLE_PRICING,
|
|
18
|
+
applyVideoAudioToggle,
|
|
19
|
+
getVideoAudioCapability,
|
|
20
|
+
videoAudioIntent,
|
|
21
|
+
videoAudioPricedOn,
|
|
22
|
+
GVP_SUPPORTED_PROVIDERS,
|
|
23
|
+
GVP_EXTEND_PROVIDERS,
|
|
24
|
+
GVP_END_FRAME_PROVIDERS,
|
|
25
|
+
resolveGvpAnchorWire,
|
|
26
|
+
videoModelCanSpeakDialogue,
|
|
27
|
+
getMaxVideoPromptChars,
|
|
28
|
+
pricedOutputDurationSec,
|
|
29
|
+
videoProviderRequiresImage,
|
|
30
|
+
videoProviderFoldsLoneEndFrame,
|
|
31
|
+
isGvpSupportedProvider,
|
|
32
|
+
} from "../model-constants.js"
|
|
33
|
+
import { buildVideoCreditModelIdentifier, pricedVideoSelection, videoGenerationCreditId } from "../credit-identifiers.js"
|
|
34
|
+
import { uiAspectRatioFill, uiDurationFill, uiResolutionFill } from "../video-ui-defaults.js"
|
|
35
|
+
import { mapQuality } from "../node-default-mappings.js"
|
|
36
|
+
|
|
37
|
+
const ID = "pixverse-v6-max"
|
|
38
|
+
const DURATIONS = Array.from({ length: 15 }, (_, i) => i + 1)
|
|
39
|
+
const QUALITIES = ["360p", "540p", "720p", "1080p"] as const
|
|
40
|
+
|
|
41
|
+
describe("pixverse-v6-max catalog", () => {
|
|
42
|
+
it("one id over both endpoints: text-to-video and image-to-video, 1-15s, 360p-1080p, native audio", () => {
|
|
43
|
+
const m = MODEL_CATALOG[ID]!
|
|
44
|
+
expect(isPixverseV6MaxProvider(ID)).toBe(true)
|
|
45
|
+
expect(PIXVERSE_V6_MAX_PROVIDER).toBe(ID)
|
|
46
|
+
expect([...m.modes].sort()).toEqual(["i2v", "t2v"])
|
|
47
|
+
// No end frame, no reference images / videos / audio, no character subjects.
|
|
48
|
+
expect([...(m.features ?? [])]).toEqual(["audio"])
|
|
49
|
+
expect(m.durations).toEqual(DURATIONS)
|
|
50
|
+
expect(m.defaultDuration).toBe(5)
|
|
51
|
+
expect(m.resolutions).toEqual([...QUALITIES])
|
|
52
|
+
expect(m.defaultResolution).toBe("720p")
|
|
53
|
+
expect(m.unlistedResolutionRendersAs).toBe("720p")
|
|
54
|
+
// Both schemas take a seed (0-2147483647).
|
|
55
|
+
expect(m.noSeed).toBeUndefined()
|
|
56
|
+
// The text-to-video enum, in KIE's order; the image-to-video body takes none.
|
|
57
|
+
expect(m.aspectRatios).toEqual(["16:9", "4:3", "1:1", "3:4", "9:16", "2:3", "3:2", "21:9"])
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
it("is made by PixVerse, a maker of its own", () => {
|
|
61
|
+
expect(MODEL_MAKERS.pixverse).toEqual({ name: "PixVerse" })
|
|
62
|
+
expect(modelMakerOf(MODEL_CATALOG[ID]!)).toEqual({ id: "pixverse", name: "PixVerse" })
|
|
63
|
+
expect(MODEL_CATALOG[ID]!.family).toBe("PixVerse")
|
|
64
|
+
expect(MODEL_CATALOG[ID]!.series).toBe("PixVerse")
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
it("is offered in both video lanes, runs without an image, and takes no references", () => {
|
|
68
|
+
expect(IMAGE_TO_VIDEO_PROVIDERS as readonly string[]).toContain(ID)
|
|
69
|
+
expect(TEXT_TO_VIDEO_PROVIDERS as readonly string[]).toContain(ID)
|
|
70
|
+
expect(VIDEO_GEN_PROVIDERS as readonly string[]).toContain(ID)
|
|
71
|
+
expect(videoProviderRequiresImage(ID)).toBe(false)
|
|
72
|
+
expect(VIDEO_REF_LIMITS_BY_PROVIDER[ID]).toBeUndefined()
|
|
73
|
+
expect(videoProviderFoldsLoneEndFrame(ID)).toBe(false)
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it("joins Generate Video Pro through its explicit opt-in, keyframes only, with no end anchor", () => {
|
|
77
|
+
expect(MODEL_CATALOG[ID]!.gvpWithoutReferences).toBe(true)
|
|
78
|
+
expect(isGvpSupportedProvider(ID)).toBe(true)
|
|
79
|
+
expect(GVP_SUPPORTED_PROVIDERS as readonly string[]).toContain(ID)
|
|
80
|
+
expect(GVP_EXTEND_PROVIDERS as readonly string[]).not.toContain(ID)
|
|
81
|
+
expect(GVP_END_FRAME_PROVIDERS as readonly string[]).not.toContain(ID)
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
it("a stored reference anchor choice runs as Auto in Generate Video Pro", () => {
|
|
85
|
+
expect(resolveGvpAnchorWire("reference", ID)).toBeUndefined()
|
|
86
|
+
expect(resolveGvpAnchorWire("start-end", ID)).toBe("upfront")
|
|
87
|
+
expect(resolveGvpAnchorWire("start-only", ID)).toBe("progressive")
|
|
88
|
+
// Every other model: "reference" still means none.
|
|
89
|
+
expect(resolveGvpAnchorWire("reference", "seedance-2")).toBe("none")
|
|
90
|
+
expect(resolveGvpAnchorWire("reference")).toBe("none")
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
it("caps the prompt at the schema's 5000 characters", () => {
|
|
94
|
+
expect(getMaxVideoPromptChars(ID)).toBe(5000)
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
describe("the native audio lever", () => {
|
|
99
|
+
it("is cost-affecting, on by default and classified ambient (no live dialogue probe yet)", () => {
|
|
100
|
+
const cap = getVideoAudioCapability(ID)
|
|
101
|
+
expect(cap).toEqual({ mode: "ambient", field: "generateAudioSwitch", affectsCost: true, defaultOn: true, readsGenerateAudio: true })
|
|
102
|
+
expect(AUDIO_ADDON_PROVIDERS.has(ID)).toBe(true)
|
|
103
|
+
expect(videoModelCanSpeakDialogue(ID)).toBe(false)
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
it("writes generate_audio_switch from `sound`, else `generateAudio` — the reading its price follows", () => {
|
|
107
|
+
for (const sound of [true, false]) {
|
|
108
|
+
const input: Record<string, unknown> = {}
|
|
109
|
+
applyVideoAudioToggle(input, ID, { sound })
|
|
110
|
+
expect(input).toEqual({ generate_audio_switch: sound })
|
|
111
|
+
}
|
|
112
|
+
// The Generate Video Pro engine sends `generateAudio` alone.
|
|
113
|
+
for (const generateAudio of [true, false]) {
|
|
114
|
+
const input: Record<string, unknown> = {}
|
|
115
|
+
applyVideoAudioToggle(input, ID, { generateAudio })
|
|
116
|
+
expect(input).toEqual({ generate_audio_switch: generateAudio })
|
|
117
|
+
expect(videoAudioIntent(ID, { generateAudio })).toBe(generateAudio)
|
|
118
|
+
}
|
|
119
|
+
// `sound` wins when both are sent.
|
|
120
|
+
const both: Record<string, unknown> = {}
|
|
121
|
+
applyVideoAudioToggle(both, ID, { sound: false, generateAudio: true })
|
|
122
|
+
expect(both).toEqual({ generate_audio_switch: false })
|
|
123
|
+
// The price reads the same: on with no intent, else the intent.
|
|
124
|
+
expect(videoAudioPricedOn(ID, {})).toBe(true)
|
|
125
|
+
expect(videoAudioPricedOn(ID, { generateAudio: false })).toBe(false)
|
|
126
|
+
expect(videoAudioPricedOn(ID, { sound: true, generateAudio: false })).toBe(true)
|
|
127
|
+
// No intent leaves the caller's own base value in place.
|
|
128
|
+
const base: Record<string, unknown> = { generate_audio_switch: true }
|
|
129
|
+
applyVideoAudioToggle(base, ID, undefined)
|
|
130
|
+
expect(base).toEqual({ generate_audio_switch: true })
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
describe("one quality normalizer for the wire and the bill", () => {
|
|
135
|
+
it("folds case and collapses anything else to 720p", () => {
|
|
136
|
+
expect(PIXVERSE_V6_MAX_DEFAULT_QUALITY).toBe("720p")
|
|
137
|
+
expect(normalizePixverseV6MaxQuality("1080P")).toBe("1080p")
|
|
138
|
+
expect(normalizePixverseV6MaxQuality(" 540p ")).toBe("540p")
|
|
139
|
+
expect(normalizePixverseV6MaxQuality("360p")).toBe("360p")
|
|
140
|
+
for (const off of [undefined, "", "480p", "4k", "2k", "nonsense"]) {
|
|
141
|
+
expect(normalizePixverseV6MaxQuality(off), String(off)).toBe("720p")
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
it("the catalog's collapse target is the normalizer's", () => {
|
|
146
|
+
for (const off of ["480p", "4k", "nonsense"]) {
|
|
147
|
+
expect(normalizeVideoRequestParams(ID, { resolution: off }).resolution, off).toBe(MODEL_CATALOG[ID]!.unlistedResolutionRendersAs)
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it("the credit identifier bills what the runner renders, for every spelling", () => {
|
|
152
|
+
const cases: Array<[string | undefined, string]> = [
|
|
153
|
+
["1080P", "1080p"], ["540P", "540p"], ["360p", "360p"], ["720p", "720p"],
|
|
154
|
+
[undefined, "720p"], ["480p", "720p"], ["4k", "720p"], ["nonsense", "720p"],
|
|
155
|
+
]
|
|
156
|
+
for (const [asked, billed] of cases) {
|
|
157
|
+
expect(normalizePixverseV6MaxQuality(asked)).toBe(billed)
|
|
158
|
+
expect(buildVideoCreditModelIdentifier(ID, 5, false, "image-to-video", undefined, asked)).toBe(`${ID}:5s:${billed}`)
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
describe("the credit identifier", () => {
|
|
164
|
+
it("is one row per second × quality, with `:audio` last when audio is on — and on when unset", () => {
|
|
165
|
+
for (const d of DURATIONS) {
|
|
166
|
+
for (const q of QUALITIES) {
|
|
167
|
+
for (const mode of ["image-to-video", "text-to-video"] as const) {
|
|
168
|
+
expect(buildVideoCreditModelIdentifier(ID, d, false, mode, undefined, q)).toBe(`${ID}:${d}s:${q}`)
|
|
169
|
+
expect(buildVideoCreditModelIdentifier(ID, d, true, mode, undefined, q)).toBe(`${ID}:${d}s:${q}:audio`)
|
|
170
|
+
expect(buildVideoCreditModelIdentifier(ID, d, undefined, mode, undefined, q)).toBe(`${ID}:${d}s:${q}:audio`)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
it("an unset request is the 5s 720p render with audio, and past 15s holds the top rung", () => {
|
|
177
|
+
expect(buildVideoCreditModelIdentifier(ID)).toBe(`${ID}:5s:720p:audio`)
|
|
178
|
+
expect(buildVideoCreditModelIdentifier(ID, 30, false, "text-to-video", undefined, "1080p")).toBe(`${ID}:15s:1080p`)
|
|
179
|
+
expect(pricedOutputDurationSec(ID, undefined)).toBe(5)
|
|
180
|
+
})
|
|
181
|
+
|
|
182
|
+
it("reads the request's audio fields as the runner does: `sound`, else `generateAudio`, else on", () => {
|
|
183
|
+
expect(buildVideoCreditModelIdentifier(ID, 5, { generateAudio: false }, "image-to-video", undefined, "720p")).toBe(`${ID}:5s:720p`)
|
|
184
|
+
expect(buildVideoCreditModelIdentifier(ID, 5, { generateAudio: true }, "image-to-video", undefined, "720p")).toBe(`${ID}:5s:720p:audio`)
|
|
185
|
+
expect(buildVideoCreditModelIdentifier(ID, 5, { sound: true, generateAudio: false }, "image-to-video", undefined, "720p")).toBe(`${ID}:5s:720p:audio`)
|
|
186
|
+
expect(buildVideoCreditModelIdentifier(ID, 5, {}, "image-to-video", undefined, "720p")).toBe(`${ID}:5s:720p:audio`)
|
|
187
|
+
expect(videoGenerationCreditId({ provider: ID, generateAudio: false })).toBe(`${ID}:5s:720p`)
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
it("Kling keeps reading `sound` alone: `generateAudio` moves none of its rows", () => {
|
|
191
|
+
for (const generateAudio of [true, false, undefined]) {
|
|
192
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 10, { generateAudio }, "image-to-video")).toBe("kling-3.0:10s:audio")
|
|
193
|
+
expect(buildVideoCreditModelIdentifier("kling", 5, { generateAudio }, "image-to-video")).toBe("kling:5s")
|
|
194
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 10, { sound: false, generateAudio }, "image-to-video")).toBe("kling-3.0:10s")
|
|
195
|
+
}
|
|
196
|
+
})
|
|
197
|
+
|
|
198
|
+
// A request that carries `generateAudio` alone — what a Generate Video Pro
|
|
199
|
+
// segment's provider is handed (the render-rules `gvpSegmentAudio` mapping).
|
|
200
|
+
it("a request carrying `generateAudio` alone is billed at the audio each model renders from it", () => {
|
|
201
|
+
expect(buildVideoCreditModelIdentifier(ID, 6, { generateAudio: true }, "image-to-video", undefined, "720p")).toBe(`${ID}:6s:720p:audio`)
|
|
202
|
+
expect(buildVideoCreditModelIdentifier(ID, 6, { generateAudio: false }, "image-to-video", undefined, "720p")).toBe(`${ID}:6s:720p`)
|
|
203
|
+
expect(buildVideoCreditModelIdentifier(ID, 6, { generateAudio: undefined }, "image-to-video", undefined, "720p")).toBe(`${ID}:6s:720p:audio`)
|
|
204
|
+
for (const generateAudio of [true, false, undefined]) {
|
|
205
|
+
// Kling 3.0 reads only `sound`: its default, on. Kling 2.6: off.
|
|
206
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 10, { generateAudio }, "image-to-video")).toBe("kling-3.0:10s:audio")
|
|
207
|
+
expect(buildVideoCreditModelIdentifier("kling", 5, { generateAudio }, "image-to-video")).toBe("kling:5s")
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("a model whose price does not depend on audio keeps its rows whatever the request's audio", () => {
|
|
212
|
+
for (const other of ["seedance-2", "seedance-2-mini", "minimax-h3", "kling-4", "vidu-q4", "wan-3"]) {
|
|
213
|
+
const silent = buildVideoCreditModelIdentifier(other, 8, false, "image-to-video", undefined, "720p")
|
|
214
|
+
for (const generateAudio of [true, false, undefined]) {
|
|
215
|
+
expect(buildVideoCreditModelIdentifier(other, 8, { generateAudio }, "image-to-video", undefined, "720p"), other).toBe(silent)
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
|
|
220
|
+
it("moving `:audio` after the other dimensions leaves Kling's rows where they were", () => {
|
|
221
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 10, true, "image-to-video")).toBe("kling-3.0:10s:audio")
|
|
222
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 5, undefined, "image-to-video")).toBe("kling-3.0:5s:audio")
|
|
223
|
+
expect(buildVideoCreditModelIdentifier("kling-3.0", 15, false, "image-to-video")).toBe("kling-3.0:15s")
|
|
224
|
+
expect(buildVideoCreditModelIdentifier("kling", 5, true, "image-to-video")).toBe("kling:5s:audio")
|
|
225
|
+
expect(buildVideoCreditModelIdentifier("kling", 10, undefined, "image-to-video")).toBe("kling:10s")
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
it("is declared on every pricing table the builder reads", () => {
|
|
229
|
+
expect(DURATION_PRICED_PROVIDERS.has(ID)).toBe(true)
|
|
230
|
+
expect(RESOLUTION_DURATION_PRICING[ID]).toEqual([...QUALITIES])
|
|
231
|
+
expect(PRICING_DEFAULT_RESOLUTION[ID]).toBe("720p")
|
|
232
|
+
expect(VIDEO_DURATION_TIERS[ID]!.map((t) => t.suffix)).toEqual(DURATIONS.map((d) => `${d}s`))
|
|
233
|
+
expect(VIDEO_VARIABLE_PRICING[ID]).toBe("duration+resolution+audio")
|
|
234
|
+
})
|
|
235
|
+
})
|
|
236
|
+
|
|
237
|
+
describe("defaults every surface reads", () => {
|
|
238
|
+
it("an unset resolution and duration are 720p and 5s, never the 360p / 1s first entries", () => {
|
|
239
|
+
expect(pricedVideoSelection({ provider: ID })).toEqual({ resolution: "720p", duration: 5, adjustments: [] })
|
|
240
|
+
expect(pricedVideoSelection({ provider: ID, resolution: "360p", duration: 3 })).toEqual({ resolution: "360p", duration: 3, adjustments: [] })
|
|
241
|
+
expect(uiResolutionFill(ID)).toBe("720p")
|
|
242
|
+
expect(uiDurationFill(ID)).toBe(5)
|
|
243
|
+
expect(defaultResolutionFor(ID)).toBe("720p")
|
|
244
|
+
// No aspect fill: the text-to-video runner sends 16:9 (the first listed),
|
|
245
|
+
// and an image-to-video run follows the image.
|
|
246
|
+
expect(uiAspectRatioFill(ID)).toBeUndefined()
|
|
247
|
+
})
|
|
248
|
+
|
|
249
|
+
it("the quality rungs land on 540p / 720p / 1080p", () => {
|
|
250
|
+
expect(mapQuality(ID, "low")).toEqual({ field: "resolution", value: "540p" })
|
|
251
|
+
expect(mapQuality(ID, "mid")).toEqual({ field: "resolution", value: "720p" })
|
|
252
|
+
expect(mapQuality(ID, "high")).toEqual({ field: "resolution", value: "1080p" })
|
|
253
|
+
})
|
|
254
|
+
})
|
|
255
|
+
|
|
256
|
+
describe("the catalog's price rows follow the ladder", () => {
|
|
257
|
+
it("each row is ceil(rate × seconds / 10) × 10 at its quality and audio rate", () => {
|
|
258
|
+
// Base credits a second (KIE credits a second × 2.5, all whole numbers).
|
|
259
|
+
const rate: Record<string, readonly [number, number]> = {
|
|
260
|
+
"360p": [12, 18], "540p": [18, 22], "720p": [22, 30], "1080p": [44, 56],
|
|
261
|
+
}
|
|
262
|
+
const ladder = (q: string, s: number, audio: boolean) => Math.ceil((rate[q]![audio ? 1 : 0] * s) / 10) * 10
|
|
263
|
+
for (const row of MODEL_CATALOG[ID]!.pricing) {
|
|
264
|
+
const m = /^pixverse-v6-max(?::(\d+)s:(\d+p)(:audio)?)?$/.exec(row.identifier)
|
|
265
|
+
expect(m, row.identifier).not.toBeNull()
|
|
266
|
+
// The bare id is the default render: 5s 720p with audio.
|
|
267
|
+
const [s, q, audio] = m![1] ? [Number(m![1]), m![2]!, m![3] !== undefined] : [5, "720p", true]
|
|
268
|
+
expect(row.credits, row.identifier).toBe(ladder(q, s, audio))
|
|
269
|
+
}
|
|
270
|
+
})
|
|
271
|
+
})
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
VIDEO_GEN_PROVIDERS,
|
|
26
26
|
VIDEO_TO_VIDEO_PROVIDERS,
|
|
27
27
|
EXTEND_VIDEO_PROVIDERS,
|
|
28
|
+
LIP_SYNC_PROVIDERS,
|
|
28
29
|
} from "../model-constants.js"
|
|
29
30
|
|
|
30
31
|
describe("per-model prompt length limits", () => {
|
|
@@ -177,6 +178,9 @@ describe("per-model prompt length limits", () => {
|
|
|
177
178
|
...VIDEO_GEN_PROVIDERS,
|
|
178
179
|
...VIDEO_TO_VIDEO_PROVIDERS,
|
|
179
180
|
...EXTEND_VIDEO_PROVIDERS,
|
|
181
|
+
// A lip-sync model is a video model too: OmniHuman 2.0's prompt is cut to
|
|
182
|
+
// its own 300-character limit (KIE schema) through this same table.
|
|
183
|
+
...LIP_SYNC_PROVIDERS,
|
|
180
184
|
])
|
|
181
185
|
|
|
182
186
|
it("every image-cap key is a real image provider id", () => {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest"
|
|
2
|
+
import {
|
|
3
|
+
LIP_SYNC_PROVIDERS,
|
|
4
|
+
REPLICATE_LIP_SYNC_PROVIDERS,
|
|
5
|
+
VIDEO_INPUT_LIP_SYNC_PROVIDERS,
|
|
6
|
+
FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS,
|
|
7
|
+
RETIRED_LIP_SYNC_PROVIDERS,
|
|
8
|
+
retiredLipSyncProviderName,
|
|
9
|
+
retiredLipSyncProviderMessage,
|
|
10
|
+
} from "../entries/models.js"
|
|
11
|
+
import { MODEL_CATALOG } from "../entries/model-catalog.js"
|
|
12
|
+
|
|
13
|
+
/** Wav2Lip, VideoReTalking and SadTalker are retired from Lip Sync (decided 2026-11-12). */
|
|
14
|
+
describe("the Lip Sync models retired from Lip Sync", () => {
|
|
15
|
+
const RETIRED = ["wav2lip", "video-retalking", "sadtalker"]
|
|
16
|
+
|
|
17
|
+
it("are exactly the three, each with the name it is shown by", () => {
|
|
18
|
+
expect(RETIRED_LIP_SYNC_PROVIDERS).toEqual({ wav2lip: "Wav2Lip", "video-retalking": "VideoReTalking", sadtalker: "SadTalker" })
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it("are offered nowhere: not a Lip Sync option, not a Replicate lip-sync option, not a catalog model", () => {
|
|
22
|
+
for (const id of RETIRED) {
|
|
23
|
+
expect(LIP_SYNC_PROVIDERS as readonly string[], id).not.toContain(id)
|
|
24
|
+
expect(REPLICATE_LIP_SYNC_PROVIDERS.has(id as never), id).toBe(false)
|
|
25
|
+
expect(MODEL_CATALOG[id], id).toBeUndefined()
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
it("keep their input kind, so a saved node on one keeps the inputs its connections attach to", () => {
|
|
30
|
+
expect(VIDEO_INPUT_LIP_SYNC_PROVIDERS.has("video-retalking" as never)).toBe(true)
|
|
31
|
+
expect(FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS.has("wav2lip" as never)).toBe(true)
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
it("answer one sentence each, and nothing else does (own keys only)", () => {
|
|
35
|
+
expect(retiredLipSyncProviderMessage("wav2lip")).toBe("Wav2Lip is no longer available for Lip Sync. Pick another Lip Sync model.")
|
|
36
|
+
expect(retiredLipSyncProviderMessage("video-retalking")).toBe("VideoReTalking is no longer available for Lip Sync. Pick another Lip Sync model.")
|
|
37
|
+
expect(retiredLipSyncProviderMessage("sadtalker")).toBe("SadTalker is no longer available for Lip Sync. Pick another Lip Sync model.")
|
|
38
|
+
for (const value of [undefined, null, 42, "", "latentsync", "kling-avatar", "constructor", "toString", "__proto__"]) {
|
|
39
|
+
expect(retiredLipSyncProviderName(value), String(value)).toBeUndefined()
|
|
40
|
+
expect(retiredLipSyncProviderMessage(value), String(value)).toBeUndefined()
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
})
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest"
|
|
2
|
+
import {
|
|
3
|
+
seedanceExtendAddedSec,
|
|
4
|
+
seedanceExtendFullWindowCreditId,
|
|
5
|
+
seedanceExtendRefusesSource,
|
|
6
|
+
seedanceExtendSentSec,
|
|
7
|
+
seedanceExtendSourceCreditId,
|
|
8
|
+
seedanceExtendSourceSec,
|
|
9
|
+
seedanceExtendUnits,
|
|
10
|
+
tailExtendCreditId,
|
|
11
|
+
} from "../entries/credits.js"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* `seedanceExtendSourceCreditId` (decided 2026-11-13): the ONE whole-run quote
|
|
15
|
+
* id a Seedance 2.5 Extend run on a known source is charged, by the seconds
|
|
16
|
+
* rule the server charges it by — units = (seconds sent + seconds added) ÷ 2,
|
|
17
|
+
* the seconds sent the source's picture read by the container-overhang rule,
|
|
18
|
+
* at most 10. Its parity with the server's charge is held in the backend
|
|
19
|
+
* (`seedance-extend-source-quote.test.ts`), where the server's quote
|
|
20
|
+
* resolution runs.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const RESOLUTIONS = [undefined, "480p", "720p", "1080p", "4k"] as const
|
|
24
|
+
const DURATIONS = [undefined, 1, 4, 8, 12, 30, 45, "12", -1] as const
|
|
25
|
+
|
|
26
|
+
describe("seedanceExtendSourceCreditId", () => {
|
|
27
|
+
it.each([
|
|
28
|
+
// [source picture s, seconds added, resolution, id]
|
|
29
|
+
[1.8, 4, "480p", "seedance-2-5-extend:480p:per-2s:2.9u"],
|
|
30
|
+
[4, 8, "720p", "seedance-2-5-extend:720p:per-2s:6u"],
|
|
31
|
+
// 8.04 s is a whole 8 s by the container-overhang rule; 8.3 s counts as measured.
|
|
32
|
+
[8.04, 8, "720p", "seedance-2-5-extend:720p:per-2s:8u"],
|
|
33
|
+
[8.3, 8, "720p", "seedance-2-5-extend:720p:per-2s:8.15u"],
|
|
34
|
+
// At most the 10 s window is sent: 10.05 s reads as 10 s, 25 s sends its last 10.
|
|
35
|
+
[10.05, 30, "1080p", "seedance-2-5-extend:1080p:per-2s:20u"],
|
|
36
|
+
[25, 4, "1080p", "seedance-2-5-extend:1080p:per-2s:7u"],
|
|
37
|
+
] as const)("a %s s source, %s s added at %s: %s", (source, added, resolution, id) => {
|
|
38
|
+
expect(seedanceExtendSourceCreditId(source, added, resolution)).toBe(id)
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("a source the extend refuses (a measured picture under 1.8 s) names no id, whatever the seconds added", () => {
|
|
42
|
+
for (const [source, added] of [[1.7, 4], [1.7, 8], [1.0, 8], [0.5, 30], [1.79, 30]] as const) {
|
|
43
|
+
expect(seedanceExtendSourceCreditId(source, added, "720p"), `${source} s + ${added} s`).toBeUndefined()
|
|
44
|
+
}
|
|
45
|
+
expect(seedanceExtendSourceCreditId(1.8, 8, "720p")).toBe("seedance-2-5-extend:720p:per-2s:4.9u")
|
|
46
|
+
expect([1.79, 1.8, undefined, 0].map(seedanceExtendRefusesSource)).toEqual([true, false, false, false])
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
it("a length not known or unreadable names the full-window id, string for string", () => {
|
|
50
|
+
for (const unknown of [undefined, null, Number.NaN, 0, -1, -0.5, Number.POSITIVE_INFINITY]) {
|
|
51
|
+
for (const duration of DURATIONS) {
|
|
52
|
+
for (const resolution of RESOLUTIONS) {
|
|
53
|
+
expect(seedanceExtendSourceCreditId(unknown, duration, resolution), `${String(unknown)} ${String(duration)} ${String(resolution)}`)
|
|
54
|
+
.toBe(seedanceExtendFullWindowCreditId(duration, resolution))
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// …which is what every client's builder names for a Seedance 2.5 extend.
|
|
59
|
+
expect(seedanceExtendFullWindowCreditId(8, "720p")).toBe(tailExtendCreditId("seedance-2-5-extend", 8, "720p"))
|
|
60
|
+
expect(seedanceExtendFullWindowCreditId(8, "720p")).toBe("seedance-2-5-extend:720p:per-2s:9u")
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
it("a source of 10 s or longer is the full window: the most a run sends", () => {
|
|
64
|
+
for (const source of [10, 10.2, 12, 25, 3600]) {
|
|
65
|
+
expect(seedanceExtendSourceCreditId(source, 8, "720p")).toBe(seedanceExtendFullWindowCreditId(8, "720p"))
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
it("is the seconds rule, composed: units = (sent + added) ÷ 2 on the resolution's two-second row", () => {
|
|
70
|
+
for (const source of [1.8, 2, 4.37, 6.04, 8.25, 8.26, 9.99]) {
|
|
71
|
+
for (const duration of DURATIONS) {
|
|
72
|
+
const units = seedanceExtendUnits(seedanceExtendSentSec(source), seedanceExtendAddedSec("seedance-2-5-extend", duration))
|
|
73
|
+
expect(seedanceExtendSourceCreditId(source, duration, "1080p")).toBe(`seedance-2-5-extend:1080p:per-2s:${String(units)}u`)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
describe("the seconds rule (moved from @nodaro/render-rules, unchanged)", () => {
|
|
80
|
+
it("reads a picture by the container-overhang rule, then caps it at the 10 s window", () => {
|
|
81
|
+
expect([8.04, 8.25, 8.26, 8.3, 4.37, 0.5, 1.2].map(seedanceExtendSourceSec)).toEqual([8, 8, 8.26, 8.3, 4.37, 0.5, 1])
|
|
82
|
+
expect([1.8, 8.04, 10.05, 25, undefined, null, 0, Number.NaN].map(seedanceExtendSentSec)).toEqual([1.8, 8, 10, 10, 10, 10, 10, 10])
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
it("adds the requested seconds held in the catalog window (default 8 s), for every tail-recipe provider", () => {
|
|
86
|
+
expect([undefined, 1, 4, 30, 45, "12", "abc"].map((d) => seedanceExtendAddedSec("seedance-2-5-extend", d))).toEqual([8, 4, 4, 30, 30, 12, 8])
|
|
87
|
+
expect(seedanceExtendAddedSec("kling-4-extend", undefined)).toBe(5)
|
|
88
|
+
})
|
|
89
|
+
})
|
|
@@ -11,7 +11,6 @@ import { isVideoAutoAspectToken, videoAutoAspectRunsAt } from "../model-catalog.
|
|
|
11
11
|
|
|
12
12
|
const base: Omit<SeedanceTaskTypeFacts, "requested"> = {
|
|
13
13
|
provider: "seedance-2-5",
|
|
14
|
-
draft: false,
|
|
15
14
|
referenceImageCount: 0,
|
|
16
15
|
referenceAudioCount: 0,
|
|
17
16
|
referenceVideoSec: [6],
|
|
@@ -58,8 +57,19 @@ describe("resolveSeedanceTaskType", () => {
|
|
|
58
57
|
expectUnchanged({ ...base, provider: "kling-4", requested: "edit" })
|
|
59
58
|
})
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
// A draft declares, and is forced, exactly as the same request without Draft:
|
|
61
|
+
// the whole result, for each type, at a fixed and at an automatic length.
|
|
62
|
+
it.each([
|
|
63
|
+
["edit", 5], ["edit", -1], ["extend", 5], ["extend", -1], ["reference", 5], ["reference", -1],
|
|
64
|
+
] as const)("a draft declares %s at %s s exactly as a run without Draft", (requested, duration) => {
|
|
65
|
+
const run = resolveSeedanceTaskType({ ...base, requested, duration })
|
|
66
|
+
expect(run.taskType).toBe(requested)
|
|
67
|
+
expect(resolveSeedanceTaskType({ ...base, requested, duration, draft: true })).toStrictEqual(run)
|
|
68
|
+
expect(resolveSeedanceTaskType({ ...base, requested, duration, draft: false })).toStrictEqual(run)
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("a draft with an edit it cannot honour declares nothing, as a run without Draft", () => {
|
|
72
|
+
expectUnchanged({ ...base, draft: true, requested: "edit", referenceVideoSec: [3] })
|
|
63
73
|
})
|
|
64
74
|
|
|
65
75
|
it("no reference media at all: unchanged", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest"
|
|
2
|
-
import { assertCanvasExecutionAllowed, requiresSequenceExecution, STUDIO_DEPENDENT_FRAMES_CAPABILITY } from "../sequence-execution"
|
|
2
|
+
import { assertCanvasExecutionAllowed, isCodecOwnedDocument, requiresSequenceExecution, STUDIO_DEPENDENT_FRAMES_CAPABILITY } from "../sequence-execution"
|
|
3
3
|
|
|
4
4
|
describe("dependency execution boundary", () => {
|
|
5
5
|
it.each([
|
|
@@ -18,3 +18,24 @@ describe("dependency execution boundary", () => {
|
|
|
18
18
|
.toThrow(expect.objectContaining({ nodeIds: ["linked"] }))
|
|
19
19
|
})
|
|
20
20
|
})
|
|
21
|
+
|
|
22
|
+
describe("isCodecOwnedDocument — the one predicate the server's routes and the editor ask", () => {
|
|
23
|
+
it("a Studio settings block holding keyframes, sequences or settled jobs, or declaring dependent frames", () => {
|
|
24
|
+
for (const studio of [{ keyframes: [] }, { sequences: [] }, { settledJobIds: [] }, { requiredCapabilities: [STUDIO_DEPENDENT_FRAMES_CAPABILITY] }]) {
|
|
25
|
+
expect(isCodecOwnedDocument([], { studio }), JSON.stringify(studio)).toBe(true)
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
it("any node carrying keyframeId, sequenceBinding or the declaration — whatever the settings", () => {
|
|
30
|
+
for (const data of [{ keyframeId: "k" }, { keyframeId: undefined }, { sequenceBinding: {} }, { requiredCapabilities: [STUDIO_DEPENDENT_FRAMES_CAPABILITY] }]) {
|
|
31
|
+
expect(isCodecOwnedDocument([{ id: "a", data: {} }, { id: "b", data }], {}), JSON.stringify(data)).toBe(true)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it("an ordinary document, a Studio marker alone, and malformed input are not", () => {
|
|
36
|
+
expect(isCodecOwnedDocument([{ id: "a", data: { prompt: "x" } }], {})).toBe(false)
|
|
37
|
+
expect(isCodecOwnedDocument([], { studio: { shots: [] } })).toBe(false)
|
|
38
|
+
expect(isCodecOwnedDocument([{ id: "a", data: { requiredCapabilities: ["other"] } }], null)).toBe(false)
|
|
39
|
+
for (const v of [undefined, null, "x", 3, [null, 7, { data: null }]]) expect(isCodecOwnedDocument(v, v)).toBe(false)
|
|
40
|
+
})
|
|
41
|
+
})
|
|
@@ -21,6 +21,24 @@ describe("sunoCreditType — the ONE implementation of the Suno route pricing co
|
|
|
21
21
|
expect(sunoCreditType("V5_5", "suno-generate")).toBe("suno-v5_5")
|
|
22
22
|
expect(sunoCreditType("V5", "suno-cover")).toBe("suno-v5")
|
|
23
23
|
expect(sunoCreditType("V5_5", "suno-extend")).toBe("suno-v5_5")
|
|
24
|
+
// Their own rows since 2026-11-12 (they were charged under the operation's row, at the same price).
|
|
25
|
+
expect(sunoCreditType("V4_5PLUS", "suno-generate")).toBe("suno-v4_5plus")
|
|
26
|
+
expect(sunoCreditType("V4_5ALL", "suno-cover")).toBe("suno-v4_5all")
|
|
27
|
+
expect(sunoCreditType("V4_5", "suno-extend")).toBe("suno-v4_5")
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
// A version a deployment's model restriction can name is a catalog entry
|
|
31
|
+
// (its `dataValue`), and the row it is charged under is that entry's own.
|
|
32
|
+
it("gives every version but V4 its own credit key, the pricing row of its catalog entry", () => {
|
|
33
|
+
const sunoEntries = Object.values(MODEL_CATALOG).filter((m) => m.family === "Suno")
|
|
34
|
+
for (const model of SUNO_MODELS) {
|
|
35
|
+
const entry = sunoEntries.find((m) => m.dataValue === model)
|
|
36
|
+
expect(entry, `${model} has no MODEL_CATALOG entry with dataValue`).toBeTruthy()
|
|
37
|
+
if (model === "V4") continue
|
|
38
|
+
const key = SUNO_VERSION_CREDIT_KEYS[model]
|
|
39
|
+
expect(key, `${model} has no SUNO_VERSION_CREDIT_KEYS row`).toBe(entry!.id)
|
|
40
|
+
expect(entry!.pricing[0]!.identifier).toBe(key)
|
|
41
|
+
}
|
|
24
42
|
})
|
|
25
43
|
|
|
26
44
|
// A new active version with no key would silently bill at the operation
|
|
@@ -59,10 +77,11 @@ describe("sunoCreditType — the ONE implementation of the Suno route pricing co
|
|
|
59
77
|
expect(sunoModelHonoursDuration(undefined)).toBe(false)
|
|
60
78
|
})
|
|
61
79
|
|
|
62
|
-
it("falls back to the operation key for
|
|
80
|
+
it("falls back to the operation key for a version with no dedicated price (V4) and for none", () => {
|
|
63
81
|
expect(sunoCreditType("V4", "suno-generate")).toBe("suno-generate")
|
|
64
|
-
expect(sunoCreditType("
|
|
82
|
+
expect(sunoCreditType("V4", "suno-cover")).toBe("suno-cover")
|
|
65
83
|
expect(sunoCreditType(undefined, "suno-extend")).toBe("suno-extend")
|
|
84
|
+
expect(sunoCreditType("V9", "suno-generate")).toBe("suno-generate")
|
|
66
85
|
})
|
|
67
86
|
|
|
68
87
|
// The reason this function is gated rather than a bare version map: these four
|
|
@@ -3,8 +3,12 @@ import {
|
|
|
3
3
|
TRANSCRIBE_PROVIDERS,
|
|
4
4
|
TRANSCRIBE_LANES,
|
|
5
5
|
TRANSCRIBE_PROVIDER_CAPABILITIES,
|
|
6
|
+
CAPTION_TRANSCRIBE_LANES,
|
|
7
|
+
TRANSCRIBE_TARGET_LANGUAGES,
|
|
6
8
|
transcribeProvidersWithWordTimestamps,
|
|
7
9
|
transcribeLaneSupportsWordTimestamps,
|
|
10
|
+
transcribeProvidersWithTranslation,
|
|
11
|
+
transcribeLaneSupportsTranslation,
|
|
8
12
|
DEFAULT_TRANSCRIBE_PROVIDER,
|
|
9
13
|
DEFAULT_TRANSCRIBE_NODE_PROVIDER,
|
|
10
14
|
} from "../model-constants.js"
|
|
@@ -32,16 +36,51 @@ describe("transcribe lane capabilities", () => {
|
|
|
32
36
|
expect(extra, `capability rows for unknown lanes: ${extra.join(", ")}`).toEqual([])
|
|
33
37
|
})
|
|
34
38
|
|
|
35
|
-
it("openai/whisper cannot do word timestamps; the other
|
|
39
|
+
it("openai/whisper cannot do word timestamps; the other three can", () => {
|
|
36
40
|
// Not a taste call: openai/whisper on Replicate has no `word_timestamps`
|
|
37
41
|
// input in any published version, so the key is silently dropped.
|
|
38
42
|
expect(TRANSCRIBE_PROVIDER_CAPABILITIES.whisper.wordTimestamps).toBe(false)
|
|
39
43
|
expect(TRANSCRIBE_PROVIDER_CAPABILITIES["incredibly-fast-whisper"].wordTimestamps).toBe(true)
|
|
40
44
|
expect(TRANSCRIBE_PROVIDER_CAPABILITIES["elevenlabs-stt"].wordTimestamps).toBe(true)
|
|
45
|
+
expect(TRANSCRIBE_PROVIDER_CAPABILITIES["nemotron-3-5-transcribe"].wordTimestamps).toBe(true)
|
|
41
46
|
})
|
|
42
47
|
|
|
43
48
|
it("transcribeProvidersWithWordTimestamps derives from the capability map", () => {
|
|
44
|
-
expect(transcribeProvidersWithWordTimestamps()).toEqual(["incredibly-fast-whisper", "elevenlabs-stt"])
|
|
49
|
+
expect(transcribeProvidersWithWordTimestamps()).toEqual(["incredibly-fast-whisper", "elevenlabs-stt", "nemotron-3-5-transcribe"])
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
it("only Nemotron 3.5 Transcribe translates", () => {
|
|
53
|
+
expect(transcribeProvidersWithTranslation()).toEqual(["nemotron-3-5-transcribe"])
|
|
54
|
+
expect(transcribeLaneSupportsTranslation("nemotron-3-5-transcribe")).toBe(true)
|
|
55
|
+
expect(transcribeLaneSupportsTranslation("elevenlabs-stt")).toBe(false)
|
|
56
|
+
expect(transcribeLaneSupportsTranslation("deepgram")).toBe(false)
|
|
57
|
+
expect(transcribeLaneSupportsTranslation(undefined)).toBe(false)
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
it("the target languages are KIE's 32 (English first)", () => {
|
|
61
|
+
expect(TRANSCRIBE_TARGET_LANGUAGES[0]).toBe("en")
|
|
62
|
+
expect(TRANSCRIBE_TARGET_LANGUAGES).toHaveLength(32)
|
|
63
|
+
expect(new Set(TRANSCRIBE_TARGET_LANGUAGES).size).toBe(32)
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
it("the new engine joins at the END, so the first word-capable provider stays ElevenLabs STT", () => {
|
|
67
|
+
// Several call sites take "the first enabled word-capable provider" from
|
|
68
|
+
// TRANSCRIBE_PROVIDERS (add-captions' cloud relay among them).
|
|
69
|
+
expect(TRANSCRIBE_PROVIDERS[0]).toBe("elevenlabs-stt")
|
|
70
|
+
expect(TRANSCRIBE_PROVIDERS.find((p) => TRANSCRIBE_PROVIDER_CAPABILITIES[p].wordTimestamps)).toBe("elevenlabs-stt")
|
|
71
|
+
expect(TRANSCRIBE_PROVIDERS[TRANSCRIBE_PROVIDERS.length - 1]).toBe("nemotron-3-5-transcribe")
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
it("Add Captions offers Nemotron at the END of its lanes (priced per minute there too, decided 2026-11-13)", () => {
|
|
75
|
+
expect([...CAPTION_TRANSCRIBE_LANES]).toEqual(["whisper", "incredibly-fast-whisper", "elevenlabs-stt", "nemotron-3-5-transcribe"])
|
|
76
|
+
for (const lane of CAPTION_TRANSCRIBE_LANES) expect(TRANSCRIBE_LANES).toContain(lane)
|
|
77
|
+
// Captions need word timings: every lane but whisper gives them, Nemotron included.
|
|
78
|
+
expect(TRANSCRIBE_PROVIDER_CAPABILITIES["nemotron-3-5-transcribe"].wordTimestamps).toBe(true)
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("the defaults do not move", () => {
|
|
82
|
+
expect(DEFAULT_TRANSCRIBE_PROVIDER).toBe("whisper")
|
|
83
|
+
expect(DEFAULT_TRANSCRIBE_NODE_PROVIDER).toBe("elevenlabs-stt")
|
|
45
84
|
})
|
|
46
85
|
|
|
47
86
|
it("the default lane is itself a lane", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest"
|
|
2
|
-
import { findWordlessTranscriptFeeds, transcribeWordTimestampsRefusal } from "../transcribe-preflight.js"
|
|
2
|
+
import { findWordlessTranscriptFeeds, transcribeTargetLanguageOf, transcribeTranslationRefusal, transcribeWordTimestampsRefusal } from "../transcribe-preflight.js"
|
|
3
3
|
|
|
4
4
|
const n = (id: string, type: string, data: Record<string, unknown> = {}) => ({ id, type, data })
|
|
5
5
|
const e = (source: string, sourceHandle: string, target: string, targetHandle: string) => ({ source, sourceHandle, target, targetHandle })
|
|
@@ -63,3 +63,52 @@ describe("findWordlessTranscriptFeeds", () => {
|
|
|
63
63
|
)).toEqual([])
|
|
64
64
|
})
|
|
65
65
|
})
|
|
66
|
+
|
|
67
|
+
// Nemotron 3.5 Transcribe (2026-11-12): word-capable, and the one engine that
|
|
68
|
+
// translates — never together with word timings (KIE refuses the pair).
|
|
69
|
+
describe("Nemotron 3.5 Transcribe: word timings and translation", () => {
|
|
70
|
+
it("is word-capable, unless it translates", () => {
|
|
71
|
+
expect(transcribeWordTimestampsRefusal("nemotron-3-5-transcribe")).toBeNull()
|
|
72
|
+
expect(transcribeWordTimestampsRefusal("nemotron-3-5-transcribe", "en")).toContain("translation")
|
|
73
|
+
expect(transcribeWordTimestampsRefusal("nemotron-3-5-transcribe", "")).toBeNull()
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it("refuses a translation on any other engine, naming the one that translates", () => {
|
|
77
|
+
for (const lane of ["elevenlabs-stt", "whisper", "incredibly-fast-whisper"]) {
|
|
78
|
+
const msg = transcribeTranslationRefusal(lane, "en")!
|
|
79
|
+
expect(msg).toContain(`"${lane}"`)
|
|
80
|
+
expect(msg).toContain("nemotron-3-5-transcribe")
|
|
81
|
+
}
|
|
82
|
+
// An absent provider is the NODE default (elevenlabs-stt), which does not translate.
|
|
83
|
+
expect(transcribeTranslationRefusal(undefined, "en")).toContain('"elevenlabs-stt"')
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
it("refuses a language KIE does not translate into, and word timings beside a translation", () => {
|
|
87
|
+
expect(transcribeTranslationRefusal("nemotron-3-5-transcribe", "vi")).toContain('"vi"')
|
|
88
|
+
expect(transcribeTranslationRefusal("nemotron-3-5-transcribe", "en", true)).toContain("word timings")
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it("passes a valid translation, and no translation at all on any engine", () => {
|
|
92
|
+
expect(transcribeTranslationRefusal("nemotron-3-5-transcribe", "he")).toBeNull()
|
|
93
|
+
expect(transcribeTranslationRefusal("nemotron-3-5-transcribe", "en", false)).toBeNull()
|
|
94
|
+
expect(transcribeTranslationRefusal("whisper", undefined, true)).toBeNull()
|
|
95
|
+
expect(transcribeTranslationRefusal("elevenlabs-stt", "")).toBeNull()
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
it("reads a target language as data carries it", () => {
|
|
99
|
+
expect(transcribeTargetLanguageOf(" en ")).toBe("en")
|
|
100
|
+
expect(transcribeTargetLanguageOf("")).toBeUndefined()
|
|
101
|
+
expect(transcribeTargetLanguageOf(undefined)).toBeUndefined()
|
|
102
|
+
expect(transcribeTargetLanguageOf(3)).toBeUndefined()
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
it("a translating node feeding captions is wordless; a transcribing one is not", () => {
|
|
106
|
+
const nodes = (data: Record<string, unknown>) => [n("t", "transcribe", { provider: "nemotron-3-5-transcribe", ...data }), n("c", "add-captions")]
|
|
107
|
+
const edges = [e("t", "json", "c", "transcript")]
|
|
108
|
+
expect(findWordlessTranscriptFeeds(nodes({}), edges)).toEqual([])
|
|
109
|
+
const hits = findWordlessTranscriptFeeds(nodes({ targetLanguage: "en" }), edges)
|
|
110
|
+
expect(hits).toHaveLength(1)
|
|
111
|
+
expect(hits[0]).toMatchObject({ transcribeNodeId: "t", consumerNodeId: "c", provider: "nemotron-3-5-transcribe" })
|
|
112
|
+
expect(hits[0]!.message).toContain("translation")
|
|
113
|
+
})
|
|
114
|
+
})
|