@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
|
@@ -1,229 +1,249 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk67CMMTLN_cjs = require('../chunk-67CMMTLN.cjs');
|
|
4
|
+
var chunk7AJGUI7L_cjs = require('../chunk-7AJGUI7L.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "SCRIPT_LEGACY_PROVIDER_MODELS", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk67CMMTLN_cjs.SCRIPT_LEGACY_PROVIDER_MODELS; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "resolveScriptModelId", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk67CMMTLN_cjs.resolveScriptModelId; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ADVANCED_MODE_UNAVAILABLE_REASON", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk7AJGUI7L_cjs.ADVANCED_MODE_UNAVAILABLE_REASON; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "DEFAULT_VIDEO_ANALYSIS_MODEL", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk7AJGUI7L_cjs.DEFAULT_VIDEO_ANALYSIS_MODEL; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "DEFAULT_VIDEO_ANALYSIS_TIER", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk7AJGUI7L_cjs.DEFAULT_VIDEO_ANALYSIS_TIER; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "DESCRIBE_TO_PICKER_FALLBACK_MODEL", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk7AJGUI7L_cjs.DESCRIBE_TO_PICKER_FALLBACK_MODEL; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "DESCRIBE_TO_PICKER_MODELS", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk7AJGUI7L_cjs.DESCRIBE_TO_PICKER_MODELS; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "DESCRIBE_TO_PICKER_WITHHELD_MODELS", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk7AJGUI7L_cjs.DESCRIBE_TO_PICKER_WITHHELD_MODELS; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "EFFORT_TIER_BUMP", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk7AJGUI7L_cjs.EFFORT_TIER_BUMP; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "LLM_CREDIT_RUNGS", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_CREDIT_RUNGS; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "LLM_FEATURE_DEFAULTS", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_FEATURE_DEFAULTS; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "LLM_FEATURE_DEFAULTS_FROM", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_FEATURE_DEFAULTS_FROM; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "LLM_FEATURE_DEFAULT_EFFORTS", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_FEATURE_DEFAULT_EFFORTS; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "LLM_MODALITY_CAPS", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_MODALITY_CAPS; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "LLM_MODELS", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_MODELS; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "LLM_MODEL_IDS", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_MODEL_IDS; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "LLM_PRICE_KEY_DIRECT", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_PRICE_KEY_DIRECT; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "LLM_PRICE_KEY_EFFORT", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_PRICE_KEY_EFFORT; }
|
|
71
79
|
});
|
|
72
80
|
Object.defineProperty(exports, "LLM_REASONING_EFFORTS", {
|
|
73
81
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_REASONING_EFFORTS; }
|
|
75
83
|
});
|
|
76
84
|
Object.defineProperty(exports, "LLM_ROUTE_DEFAULTS", {
|
|
77
85
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_ROUTE_DEFAULTS; }
|
|
79
87
|
});
|
|
80
88
|
Object.defineProperty(exports, "LLM_STRUCTURED_WITHHELD_MODELS", {
|
|
81
89
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_STRUCTURED_WITHHELD_MODELS; }
|
|
83
91
|
});
|
|
84
92
|
Object.defineProperty(exports, "LLM_VENDOR_LABELS", {
|
|
85
93
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_VENDOR_LABELS; }
|
|
87
95
|
});
|
|
88
96
|
Object.defineProperty(exports, "LLM_VENDOR_ORDER", {
|
|
89
97
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk7AJGUI7L_cjs.LLM_VENDOR_ORDER; }
|
|
91
99
|
});
|
|
92
100
|
Object.defineProperty(exports, "PICKABLE_LLM_MODELS", {
|
|
93
101
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk7AJGUI7L_cjs.PICKABLE_LLM_MODELS; }
|
|
95
103
|
});
|
|
96
104
|
Object.defineProperty(exports, "REASONING_OUTPUT_FLOOR", {
|
|
97
105
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk7AJGUI7L_cjs.REASONING_OUTPUT_FLOOR; }
|
|
99
107
|
});
|
|
100
108
|
Object.defineProperty(exports, "STRUCTURED_VISION_MODELS", {
|
|
101
109
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk7AJGUI7L_cjs.STRUCTURED_VISION_MODELS; }
|
|
103
111
|
});
|
|
104
112
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_LEGACY_MODELS", {
|
|
105
113
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_LEGACY_MODELS; }
|
|
107
115
|
});
|
|
108
116
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_LLM_MODELS", {
|
|
109
117
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_LLM_MODELS; }
|
|
111
119
|
});
|
|
112
120
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_MIXED_TIERS", {
|
|
113
121
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_MIXED_TIERS; }
|
|
115
123
|
});
|
|
116
124
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_TIERS", {
|
|
117
125
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_TIERS; }
|
|
119
127
|
});
|
|
120
128
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_TIER_LABELS", {
|
|
121
129
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_TIER_LABELS; }
|
|
123
131
|
});
|
|
124
132
|
Object.defineProperty(exports, "VIDEO_ANALYSIS_TIER_ORDER", {
|
|
125
133
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk7AJGUI7L_cjs.VIDEO_ANALYSIS_TIER_ORDER; }
|
|
127
135
|
});
|
|
128
136
|
Object.defineProperty(exports, "availableReasoningEfforts", {
|
|
129
137
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk7AJGUI7L_cjs.availableReasoningEfforts; }
|
|
131
139
|
});
|
|
132
140
|
Object.defineProperty(exports, "buildLlmCreditIdentifier", {
|
|
133
141
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk7AJGUI7L_cjs.buildLlmCreditIdentifier; }
|
|
135
143
|
});
|
|
136
144
|
Object.defineProperty(exports, "defaultReasoningEffort", {
|
|
137
145
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk7AJGUI7L_cjs.defaultReasoningEffort; }
|
|
139
147
|
});
|
|
140
148
|
Object.defineProperty(exports, "effectiveReasoningEffort", {
|
|
141
149
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk7AJGUI7L_cjs.effectiveReasoningEffort; }
|
|
143
151
|
});
|
|
144
152
|
Object.defineProperty(exports, "getLlmModalityCaps", {
|
|
145
153
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk7AJGUI7L_cjs.getLlmModalityCaps; }
|
|
147
155
|
});
|
|
148
156
|
Object.defineProperty(exports, "getLlmModel", {
|
|
149
157
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk7AJGUI7L_cjs.getLlmModel; }
|
|
151
159
|
});
|
|
152
160
|
Object.defineProperty(exports, "getLlmTier", {
|
|
153
161
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk7AJGUI7L_cjs.getLlmTier; }
|
|
155
163
|
});
|
|
156
164
|
Object.defineProperty(exports, "groupLlmModelsByVendor", {
|
|
157
165
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk7AJGUI7L_cjs.groupLlmModelsByVendor; }
|
|
159
167
|
});
|
|
160
168
|
Object.defineProperty(exports, "isLlmModelRetired", {
|
|
161
169
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk7AJGUI7L_cjs.isLlmModelRetired; }
|
|
163
171
|
});
|
|
164
172
|
Object.defineProperty(exports, "isVideoAnalysisMixedTier", {
|
|
165
173
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk7AJGUI7L_cjs.isVideoAnalysisMixedTier; }
|
|
167
175
|
});
|
|
168
176
|
Object.defineProperty(exports, "isVideoAnalysisTier", {
|
|
169
177
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk7AJGUI7L_cjs.isVideoAnalysisTier; }
|
|
171
179
|
});
|
|
172
180
|
Object.defineProperty(exports, "llmCreditIdForRung", {
|
|
173
181
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk7AJGUI7L_cjs.llmCreditIdForRung; }
|
|
175
183
|
});
|
|
176
184
|
Object.defineProperty(exports, "llmCreditRung", {
|
|
177
185
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk7AJGUI7L_cjs.llmCreditRung; }
|
|
179
187
|
});
|
|
180
188
|
Object.defineProperty(exports, "llmDefaultsFeature", {
|
|
181
189
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk7AJGUI7L_cjs.llmDefaultsFeature; }
|
|
183
191
|
});
|
|
184
192
|
Object.defineProperty(exports, "llmPriceKey", {
|
|
185
193
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk7AJGUI7L_cjs.llmPriceKey; }
|
|
187
195
|
});
|
|
188
196
|
Object.defineProperty(exports, "llmRouteDefaults", {
|
|
189
197
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk7AJGUI7L_cjs.llmRouteDefaults; }
|
|
199
|
+
});
|
|
200
|
+
Object.defineProperty(exports, "llmSendsSchema", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function () { return chunk7AJGUI7L_cjs.llmSendsSchema; }
|
|
191
203
|
});
|
|
192
204
|
Object.defineProperty(exports, "llmServesDirect", {
|
|
193
205
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk7AJGUI7L_cjs.llmServesDirect; }
|
|
195
207
|
});
|
|
196
208
|
Object.defineProperty(exports, "llmTierCreditIds", {
|
|
197
209
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk7AJGUI7L_cjs.llmTierCreditIds; }
|
|
199
211
|
});
|
|
200
212
|
Object.defineProperty(exports, "motionGraphicsFeature", {
|
|
201
213
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk7AJGUI7L_cjs.motionGraphicsFeature; }
|
|
203
215
|
});
|
|
204
216
|
Object.defineProperty(exports, "orderedLlmModels", {
|
|
205
217
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk7AJGUI7L_cjs.orderedLlmModels; }
|
|
219
|
+
});
|
|
220
|
+
Object.defineProperty(exports, "parseLlmPriceKeyModel", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function () { return chunk7AJGUI7L_cjs.parseLlmPriceKeyModel; }
|
|
207
223
|
});
|
|
208
224
|
Object.defineProperty(exports, "pickableLlmModels", {
|
|
209
225
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk7AJGUI7L_cjs.pickableLlmModels; }
|
|
211
227
|
});
|
|
212
228
|
Object.defineProperty(exports, "reasoningOutputFloor", {
|
|
213
229
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk7AJGUI7L_cjs.reasoningOutputFloor; }
|
|
215
231
|
});
|
|
216
232
|
Object.defineProperty(exports, "resolveLlmCreditId", {
|
|
217
233
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk7AJGUI7L_cjs.resolveLlmCreditId; }
|
|
219
235
|
});
|
|
220
236
|
Object.defineProperty(exports, "resolveVideoAnalysisModel", {
|
|
221
237
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk7AJGUI7L_cjs.resolveVideoAnalysisModel; }
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "structuredWireMode", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () { return chunk7AJGUI7L_cjs.structuredWireMode; }
|
|
223
243
|
});
|
|
224
244
|
Object.defineProperty(exports, "supportsAdvancedMode", {
|
|
225
245
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunk7AJGUI7L_cjs.supportsAdvancedMode; }
|
|
227
247
|
});
|
|
228
248
|
//# sourceMappingURL=llm-models.cjs.map
|
|
229
249
|
//# sourceMappingURL=llm-models.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bK as ScriptProvider } from '../model-constants-C_Nyft_i.cjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../model-catalog-
|
|
3
|
+
import '../model-catalog-Cf9fkEUp.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* LLM Model Registry — shared between frontend and backend.
|
|
@@ -75,6 +75,38 @@ interface LlmModelDef {
|
|
|
75
75
|
* Capability-driven so `llmCompleteStructured` never hardcodes provider ids.
|
|
76
76
|
*/
|
|
77
77
|
structuredOutputMode?: "anthropic-tool" | "kie-response-format" | "responses-json-schema";
|
|
78
|
+
/**
|
|
79
|
+
* For a model with NO trusted `structuredOutputMode`: the wire field a
|
|
80
|
+
* structured call still sends its schema in, as a hint the model reads but
|
|
81
|
+
* the provider was not found to hold its answer to. Read through
|
|
82
|
+
* {@link structuredWireMode}, which every request builder uses; everything
|
|
83
|
+
* that decides TRUST (STRUCTURED_VISION_MODELS, the structured-model
|
|
84
|
+
* filters) keeps reading `structuredOutputMode` alone, so a hinted model is
|
|
85
|
+
* never offered where guaranteed structured output is required. Every answer
|
|
86
|
+
* is still parsed, validated and re-asked by `llmCompleteStructured`, as for
|
|
87
|
+
* any model. Never set together with `structuredOutputMode` (registry test).
|
|
88
|
+
*/
|
|
89
|
+
structuredOutputHint?: "kie-response-format" | "responses-json-schema";
|
|
90
|
+
/**
|
|
91
|
+
* The KIE lane sends this model's structured calls NO `response_format`: the
|
|
92
|
+
* schema rides the system prompt instead (the one-object rule and the schema,
|
|
93
|
+
* as the KIE Claude lane's prompt-JSON), in the wire form `response_format`
|
|
94
|
+
* sent (keyword-named properties aliased and restored on the answer; Google's
|
|
95
|
+
* compact form), and `llmCompleteStructured` parses, validates and re-asks the
|
|
96
|
+
* answer as it does for any model. When every KIE answer of an unpinned call
|
|
97
|
+
* fails validation, the direct lane, which enforces the schema, is asked once
|
|
98
|
+
* before the call fails. For a model whose KIE endpoint fails a request that
|
|
99
|
+
* carries `response_format`.
|
|
100
|
+
*
|
|
101
|
+
* Per LANE, not per model: `structuredOutputMode` stays, so the trust readers
|
|
102
|
+
* (STRUCTURED_VISION_MODELS, the structured-model filters) and the direct
|
|
103
|
+
* lane's enforced `responseJsonSchema` are unchanged. Nothing reads trust to
|
|
104
|
+
* skip validation, and only an `anthropic-tool` model streams partial values,
|
|
105
|
+
* so a KIE-served answer here is checked like any untrusted one. Only on a
|
|
106
|
+
* `kieFormat: "chat-completions"` model whose wire mode is
|
|
107
|
+
* `kie-response-format` (registry test).
|
|
108
|
+
*/
|
|
109
|
+
kieSchemaInPrompt?: true;
|
|
78
110
|
/** If set, fallback to direct Anthropic SDK with this model ID when KIE.ai fails */
|
|
79
111
|
directFallbackModel?: string;
|
|
80
112
|
/**
|
|
@@ -118,6 +150,27 @@ interface LlmModelDef {
|
|
|
118
150
|
directOnly?: true;
|
|
119
151
|
/** Effort levels this model accepts (ascending). Absent/empty = no effort lever, picker hidden. */
|
|
120
152
|
reasoningEfforts?: readonly LlmReasoningEffort[];
|
|
153
|
+
/**
|
|
154
|
+
* true = a REQUESTED effort below this model's lowest level is sent as that
|
|
155
|
+
* lowest level, never as nothing ({@link effectiveReasoningEffort}): with no
|
|
156
|
+
* effort on the wire the provider runs this model at its HIGHEST level, so
|
|
157
|
+
* dropping a `none` request would buy the most reasoning instead of the
|
|
158
|
+
* least. Auto — no effort requested at all — still sends nothing. Absent =
|
|
159
|
+
* a request below the lowest level is dropped (Auto), the usual rule.
|
|
160
|
+
*/
|
|
161
|
+
effortBelowLowestSendsLowest?: true;
|
|
162
|
+
/**
|
|
163
|
+
* true = the PRICE of a call on this model depends on whether it sends a
|
|
164
|
+
* reasoning effort, not only on its lane: the aggregator adds input of its
|
|
165
|
+
* own to every call, whose size depends on it. So the model's price key
|
|
166
|
+
* names the effort a call sends ({@link llmPriceKey}: `:effort-<level>`),
|
|
167
|
+
* and every estimate surface quotes that call. The sizes themselves are
|
|
168
|
+
* backend data (`backend/src/lib/pricing/llm-cost.ts`), held to this flag by
|
|
169
|
+
* a backend test. No model sets it today (GPT-6.1 Terra did for part of
|
|
170
|
+
* 2026-11-12, until its aggregator's added input stopped depending on the
|
|
171
|
+
* effort).
|
|
172
|
+
*/
|
|
173
|
+
effortPriced?: true;
|
|
121
174
|
/**
|
|
122
175
|
* Effort levels available on the DIRECT lane, when the vendor's own API
|
|
123
176
|
* accepts more than the aggregator does. Absent = the direct lane offers the
|
|
@@ -244,6 +297,23 @@ declare function pickableLlmModels(currentId?: string): LlmModelDef[];
|
|
|
244
297
|
* Single source of truth so the picker, the config panel, and the route gate
|
|
245
298
|
* can't drift. */
|
|
246
299
|
declare const STRUCTURED_VISION_MODELS: LlmModelDef[];
|
|
300
|
+
/**
|
|
301
|
+
* How a structured call's schema goes on the wire for `model`: its trusted
|
|
302
|
+
* `structuredOutputMode`, else its `structuredOutputHint`; undefined = the
|
|
303
|
+
* schema is not sent at all (a model with neither: plain text, parsed and
|
|
304
|
+
* re-asked). What the request builders read — never a TRUST decision, which
|
|
305
|
+
* reads `structuredOutputMode` alone.
|
|
306
|
+
*/
|
|
307
|
+
declare function structuredWireMode(model: Pick<LlmModelDef, "structuredOutputMode" | "structuredOutputHint">): LlmModelDef["structuredOutputMode"];
|
|
308
|
+
/**
|
|
309
|
+
* Does a structured call on `modelId` (unset = `feature`'s default model) send
|
|
310
|
+
* its schema ({@link structuredWireMode})? On the wire, or in the system prompt
|
|
311
|
+
* on a lane that carries it there (`kieSchemaInPrompt`): either way the model
|
|
312
|
+
* reads it, so a request's size counts it. A schema that is not sent is not
|
|
313
|
+
* read by the model. A model the registry does not know counts as yes (the
|
|
314
|
+
* larger size).
|
|
315
|
+
*/
|
|
316
|
+
declare function llmSendsSchema(modelId: string | undefined, feature?: string): boolean;
|
|
247
317
|
/**
|
|
248
318
|
* Models {@link STRUCTURED_VISION_MODELS} carries that describe-to-picker does
|
|
249
319
|
* NOT offer — now none.
|
|
@@ -390,7 +460,12 @@ declare function getLlmTier(id: string): LlmTier;
|
|
|
390
460
|
* clamp can never disagree about what's selectable.
|
|
391
461
|
*/
|
|
392
462
|
declare function availableReasoningEfforts(modelId: string | undefined, advanced?: boolean): readonly LlmReasoningEffort[];
|
|
393
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* Highest level the model supports that is ≤ the requested level; undefined =
|
|
465
|
+
* treat as Auto. A request below the model's lowest level is dropped (Auto) —
|
|
466
|
+
* except on a model that declares `effortBelowLowestSendsLowest`, where it is
|
|
467
|
+
* sent as that lowest level. No request at all is always Auto.
|
|
468
|
+
*/
|
|
394
469
|
declare function effectiveReasoningEffort(modelId: string | undefined, requested?: string, advanced?: boolean): LlmReasoningEffort | undefined;
|
|
395
470
|
/**
|
|
396
471
|
* Build a composite credit identifier for an LLM feature.
|
|
@@ -458,18 +533,44 @@ declare function llmServesDirect(modelId: string | undefined, reasoningEffort?:
|
|
|
458
533
|
* `POST /v1/credits/model-costs` (or `GET /v1/credits/model-cost?model=`) for
|
|
459
534
|
* the call's estimated price: `<feature>:<modelId>`, plus `:direct` when the
|
|
460
535
|
* call is served on the vendor's own API ({@link llmServesDirect}), which is
|
|
461
|
-
* priced at the direct rate
|
|
536
|
+
* priced at the direct rate, or — on a model whose price depends on the effort
|
|
537
|
+
* (`effortPriced`, served on the aggregator) — `:effort-<level>` naming the
|
|
538
|
+
* effort the call sends. On every other model the effort changes the key only
|
|
539
|
+
* through its lane. Read back by {@link parseLlmPriceKeyModel}.
|
|
462
540
|
*
|
|
463
541
|
* With no `reasoningEffort` the default effort of the feature the call
|
|
464
542
|
* borrows its defaults from applies ({@link llmDefaultsFeature},
|
|
465
543
|
* {@link defaultReasoningEffort}) — the effort the call then runs at — so the
|
|
466
|
-
* key names the lane the call is held and
|
|
544
|
+
* key names the lane (and, where it matters, the effort) the call is held and
|
|
545
|
+
* charged on.
|
|
467
546
|
*
|
|
468
547
|
* `modelId` must already be resolved: the model the call runs on, never empty
|
|
469
548
|
* (a caller with no model passes the feature's default, `LLM_FEATURE_DEFAULTS`
|
|
470
549
|
* of {@link llmDefaultsFeature}). An empty id throws a `TypeError`.
|
|
471
550
|
*/
|
|
472
551
|
declare function llmPriceKey(feature: string, modelId: string, reasoningEffort?: string, advancedMode?: boolean): string;
|
|
552
|
+
/** The price-key suffix of a call served on the vendor's own API (see {@link llmPriceKey}). */
|
|
553
|
+
declare const LLM_PRICE_KEY_DIRECT = ":direct";
|
|
554
|
+
/** The price-key suffix naming the effort a call sends, on an `effortPriced` model: `:effort-<level>`. */
|
|
555
|
+
declare const LLM_PRICE_KEY_EFFORT = ":effort-";
|
|
556
|
+
/** A price key's model part, read back by {@link parseLlmPriceKeyModel}. */
|
|
557
|
+
interface LlmPriceKeyModel {
|
|
558
|
+
modelId: string;
|
|
559
|
+
/** Present only for a key that names the direct lane. */
|
|
560
|
+
lane?: "direct";
|
|
561
|
+
/** Present only for a key that names an effort (an `effortPriced` model's). */
|
|
562
|
+
reasoningEffort?: LlmReasoningEffort;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* The part of a price key after its `<feature>:` — `<modelId>`,
|
|
566
|
+
* `<modelId>:direct` or `<modelId>:effort-<level>` — read back, or null for
|
|
567
|
+
* anything that is not a key {@link llmPriceKey} could build: a model that is
|
|
568
|
+
* not a registry id (never a borrowed slug), an effort on a model whose price
|
|
569
|
+
* does not depend on it, a level it does not offer on the aggregator, any
|
|
570
|
+
* other suffix. The one reader both the server and the editor use, so every
|
|
571
|
+
* key names exactly one price.
|
|
572
|
+
*/
|
|
573
|
+
declare function parseLlmPriceKeyModel(tail: string): LlmPriceKeyModel | null;
|
|
473
574
|
/**
|
|
474
575
|
* The credit rungs an LLM feature bills on, cheapest first. `premium-direct` is
|
|
475
576
|
* reached only by a premium model served direct (decided 2026-10-08): the bump
|
|
@@ -507,7 +608,7 @@ declare const VIDEO_ANALYSIS_LLM_MODELS: string[];
|
|
|
507
608
|
* so adding a video model forces a tier decision instead of silently leaking.
|
|
508
609
|
*/
|
|
509
610
|
declare const VIDEO_ANALYSIS_TIERS: {
|
|
510
|
-
readonly fast: "gemini-3-flash";
|
|
611
|
+
readonly fast: "gemini-3.8-flash";
|
|
511
612
|
readonly pro: "gemini-3.1-pro";
|
|
512
613
|
};
|
|
513
614
|
type VideoAnalysisModelTier = keyof typeof VIDEO_ANALYSIS_TIERS;
|
|
@@ -575,4 +676,4 @@ declare function resolveVideoAnalysisModel(input?: string | null): string;
|
|
|
575
676
|
declare const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>>;
|
|
576
677
|
declare function resolveScriptModelId(provider?: string, llmModel?: string): string;
|
|
577
678
|
|
|
578
|
-
export { ADVANCED_MODE_UNAVAILABLE_REASON, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DESCRIBE_TO_PICKER_FALLBACK_MODEL, DESCRIBE_TO_PICKER_MODELS, DESCRIBE_TO_PICKER_WITHHELD_MODELS, EFFORT_TIER_BUMP, type KieApiFormat, LLM_CREDIT_RUNGS, LLM_FEATURE_DEFAULTS, LLM_FEATURE_DEFAULTS_FROM, LLM_FEATURE_DEFAULT_EFFORTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_STRUCTURED_WITHHELD_MODELS, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, STRUCTURED_VISION_MODELS, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveScriptModelId, resolveVideoAnalysisModel, supportsAdvancedMode };
|
|
679
|
+
export { ADVANCED_MODE_UNAVAILABLE_REASON, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DESCRIBE_TO_PICKER_FALLBACK_MODEL, DESCRIBE_TO_PICKER_MODELS, DESCRIBE_TO_PICKER_WITHHELD_MODELS, EFFORT_TIER_BUMP, type KieApiFormat, LLM_CREDIT_RUNGS, LLM_FEATURE_DEFAULTS, LLM_FEATURE_DEFAULTS_FROM, LLM_FEATURE_DEFAULT_EFFORTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_PRICE_KEY_DIRECT, LLM_PRICE_KEY_EFFORT, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_STRUCTURED_WITHHELD_MODELS, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmPriceKeyModel, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, STRUCTURED_VISION_MODELS, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmSendsSchema, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, parseLlmPriceKeyModel, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveScriptModelId, resolveVideoAnalysisModel, structuredWireMode, supportsAdvancedMode };
|