@flaqai/model-adapter 0.2.37 → 0.2.38

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.
@@ -1 +1 @@
1
- import{createModelSelectCreditTag as e,createModelSelectTags as t}from"../model-select.js";import{HAILUO_2_0_PRO_6S_MODEL as n,HAILUO_2_0_PRO_6S_TEXT_TO_VIDEO_MODEL as r,HAILUO_2_0_STANDARD_6S_MODEL as i,HAILUO_2_0_STANDARD_6S_TEXT_TO_VIDEO_MODEL as a}from"./providers/hailuo-2-0.js";import{HAILUO_2_3_FAST_IMAGE_TO_VIDEO_6S as o,HAILUO_2_3_PRO_IMAGE_TO_VIDEO_6S as s,HAILUO_2_3_STANDARD_IMAGE_TO_VIDEO_6S as c}from"./providers/hailuo-2-3.js";import{KLING_2_6_PRO_MODEL_5S as l,KLING_2_6_STD_MODEL_5S as u}from"./providers/kling-2-6.js";import{KLING_3_0_PRO_MODEL_5S as d,KLING_3_0_STD_MODEL_5S as ee}from"./providers/kling-3-0.js";import{KLING_MOTION_CONTROL_2_6_PRO as f}from"./providers/kling-motion-control.js";import{GROUP_KLING_OMNI_3_REFERENCE_MODELS as p}from"./providers/kling-omni-3-reference.js";import{KLING_1_6_MODEL_PRO_5S as m,KLING_1_6_MODEL_STD_5S as h,KLING_2_1_MODEL_MASTER_5S as g,KLING_2_1_MODEL_PRO_5S as _,KLING_2_1_MODEL_STD_5S as v}from"./providers/kling.js";import{GROUP_MINIMAX_H3_REFERENCE_MODELS as y}from"./providers/minimax-h3-reference.js";import{GROUP_SEEDANCE_2_0_FAST_REFERENCE_MODELS as te}from"./providers/seedance-2-0-fast-reference.js";import{GROUP_SEEDANCE_2_0_MINI_REFERENCE_MODELS as ne}from"./providers/seedance-2-0-mini-reference.js";import{GROUP_SEEDANCE_2_0_REFERENCE_MODELS as b}from"./providers/seedance-2-0-reference.js";import{GROUP_SEEDANCE_2_5_REFERENCE_MODELS as x}from"./providers/seedance-2-5-reference.js";import{SEEDANCE_V1_LITE_5S_MODEL as S,SEEDANCE_V1_PRO_5S_MODEL as C}from"./providers/seedance-v1.js";import{VEO_3_1_FAST_VIDEO_MODEL_720P as w,VEO_3_1_VIDEO_MODEL_720P as T}from"./providers/veo-3-1.js";import{GROUP_VIDU_Q3_REFERENCE_MODELS as E}from"./providers/vidu-q3-reference.js";import{WAN_2_5_FAST_IMAGE_TO_VIDEO_MODEL_720P_5S as D,WAN_2_5_FAST_TEXT_TO_VIDEO_MODEL_720P_5S as O,WAN_2_5_IMAGE_TO_VIDEO_MODEL_480P_5S as k,WAN_2_5_TEXT_TO_VIDEO_MODEL_480P_5S as A}from"./providers/wan-2-5.js";import{WAN_2_6_IMAGE_TO_VIDEO_MODEL_720P_5S as j,WAN_2_6_TEXT_TO_VIDEO_MODEL_720P_5S as M}from"./providers/wan-2-6.js";import{GROUP_WAN_3_0_REFERENCE_MODELS as N}from"./providers/wan-3-0-reference.js";import{GROUP_AI_IMAGE_TO_VIDEO_MODEL as P,GROUP_AI_TEXT_TO_VIDEO_MODEL as F,GROUP_AI_VIDEO_TO_VIDEO_MODEL as I,GroupFluxTextToVideoModel as L}from"./group.js";const R=[{name:`Seedance`,value:`seedance`},{name:`Google`,value:`veo`},{name:`Flux`,value:`flux-video`},{name:`Kling`,value:`kling`},{name:`Happy Horse`,value:`happy-horse`},{name:`Wan`,value:`wan`},{name:`Vidu`,value:`vidu`},{name:`MiniMax · Hailuo`,value:`hailuo`},{name:`Grok`,value:`grok`},{name:`Sora`,value:`sora`},{name:`Pixverse`,value:`pixverse`}],z=[`seedance-2-5`,`seedance-2-0-mini`,`seedance-2-0-fast`,`seedance-2-0`,`veo-3-1-fast`,`veo-3-1`],B={"seedance-1-0":[{name:`Seedance 1.0`,value:`seedance-1-0-standard`,version:`standard`,tags:[`standard`],creditSource:S},{name:`Seedance 1.0 Pro`,value:`seedance-1-0-pro`,version:`pro`,tags:[`pro`],creditSource:C}],"veo-3-1":[{name:`VEO 3.1 Fast`,value:`veo-3-1-fast`,version:`veo-3-1-fast`,tags:[`fast`],creditSource:w},{name:`VEO 3.1`,value:`veo-3-1`,version:`veo-3-1`,tags:[`standard`],creditSource:T}],"wan-2-6":[{name:`Wan 2.6`,value:`wan-2-6`,version:`wan-2-6`,tags:[`standard`],creditSourcesByMode:{text:M,image:j}}],"wan-2-5":[{name:`Wan 2.5`,value:`wan-2-5`,version:`wan-v2-5`,tags:[`standard`],creditSourcesByMode:{text:A,image:k}},{name:`Wan 2.5 Fast`,value:`wan-2-5-fast`,version:`wan-v2-5-fast`,tags:[`fast`],creditSourcesByMode:{text:O,image:D}}],"hailuo-2-3":[{name:`Hailuo 2.3 Fast`,value:`hailuo-2-3-fast`,version:`hailuo-2-3-fast`,tags:[`fast`],creditSource:o},{name:`Hailuo 2.3 Standard`,value:`hailuo-2-3-standard`,version:`hailuo-2-3-standard`,tags:[`standard`],creditSource:c},{name:`Hailuo 2.3 Pro`,value:`hailuo-2-3-pro`,version:`hailuo-2-3-pro`,tags:[`pro`],creditSource:s}],"hailuo-2-0":[{name:`Hailuo 2.0 Standard`,value:`hailuo-2-0-standard`,version:`standard`,tags:[`standard`],creditSourcesByMode:{text:a,image:i}},{name:`Hailuo 2.0 Pro`,value:`hailuo-2-0-pro`,version:`pro`,tags:[`pro`],creditSourcesByMode:{text:r,image:n}}],"kling-3-0":[{name:`Kling 3.0 STD`,value:`kling-3-0-std`,version:`std`,tags:[`standard`],creditSource:ee},{name:`Kling 3.0 Pro`,value:`kling-3-0-pro`,version:`pro`,tags:[`pro`],creditSource:d}],"kling-2-6":[{name:`Kling 2.6 STD`,value:`kling-2-6-std`,version:`std`,tags:[`standard`],creditSource:u},{name:`Kling 2.6 Pro`,value:`kling-2-6-pro`,version:`pro`,tags:[`pro`],creditSource:l}],"kling-2-1":[{name:`Kling 2.1 STD`,value:`kling-2-1-std`,version:`std`,tags:[`standard`],creditSource:v},{name:`Kling 2.1 Pro`,value:`kling-2-1-pro`,version:`pro`,tags:[`pro`],creditSource:_},{name:`Kling 2.1 Master`,value:`kling-2-1-master`,version:`master`,tags:[`master`],creditSource:g}],"kling-1-6":[{name:`Kling 1.6 STD`,value:`kling-1-6-std`,version:`std`,tags:[`standard`],creditSource:h},{name:`Kling 1.6 Pro`,value:`kling-1-6-pro`,version:`pro`,tags:[`pro`],creditSource:m}]};function V(e,t){return t||(e.startsWith(`happy-horse`)?`happy-horse`:e.startsWith(`seedance`)?`seedance`:e.startsWith(`kling`)?`kling`:e.startsWith(`wan`)?`wan`:e.startsWith(`vidu`)?`vidu`:e.startsWith(`hailuo`)?`hailuo`:e.startsWith(`grok`)?`grok`:e.startsWith(`sora`)?`sora`:e.startsWith(`pixverse`)?`pixverse`:e.startsWith(`veo`)?`veo`:`video`)}function H(e){return e===`happy-horse-1-1`?`happy-horse-1-0`:e===`seedance-2-0-fast`||e===`seedance-2-0-mini`||e===`seedance-2-5`?`seedance-2-0`:e===`wan-2-7-lora`?`wan-2-7`:e}function U(e){return e.startsWith(`seedance-2-0`)||e.startsWith(`seedance-2-5`)?t([`new`]):void 0}function W(e){return[`fast`,`standard`,`pro`,`master`].includes(e)}function G(t){return e(t.creditPerSecond??t.credit,t.creditPerSecond!==void 0)}function K({model:e,tags:n,creditSource:r}){let i=n?.some(W),a=e.infoTags?.filter(e=>e!==`multiVersion`&&!e.includes(`credits`)&&!(i&&W(e)))||[],o=t([...n||[],...e.modelTags||[],...a])||[],s=o.filter((e,t)=>o.findIndex(t=>t.value===e.value)===t);return[G(r??e),...s]}function q({modelKey:e,model:t,name:n,value:r,version:i,presentationKey:a=H(e),tags:o,creditSource:s,modelTags:c=t.modelTags,infoTags:l=t.infoTags,videoModelPlatform:u=t.videoModelPlatform}){return{name:n,value:r,group:V(e,u),model:e,presentationKey:a,version:i,topTags:U(e),bottomTags:K({model:{credit:t.credit,creditPerSecond:t.creditPerSecond,modelTags:c,infoTags:l},tags:o,creditSource:s})}}function J(e,t,n){let r=B[e];return r?r.filter(e=>!n||!e.modes||e.modes.includes(n)).map(r=>q({modelKey:e,model:t,name:r.name,value:r.value,version:r.version,presentationKey:r.presentationKey||H(e),tags:r.tags,creditSource:(n&&r.creditSourcesByMode?.[n])??r.creditSource})):[q({modelKey:e,model:t,name:t.name,value:e})]}const Y={"seedance-2-5-reference":q({modelKey:`seedance-2-5-reference`,model:x[`reference-to-video__480p__5s`],modelTags:[`audio`,`30s`,`1080p`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.5`,value:`seedance-2-5-reference`,presentationKey:`seedance-2-0`}),"seedance-2-0-mini-reference":q({modelKey:`seedance-2-0-mini-reference`,model:ne[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0 Mini`,value:`seedance-2-0-mini-reference`,presentationKey:`seedance-2-0`}),"seedance-2-0-fast-reference":q({modelKey:`seedance-2-0-fast-reference`,model:te[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0 Fast`,value:`seedance-2-0-fast-reference`,tags:[`fast`],presentationKey:`seedance-2-0`}),"seedance-2-0-reference":q({modelKey:`seedance-2-0-reference`,model:b[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0`,value:`seedance-2-0-reference`,tags:[`standard`],presentationKey:`seedance-2-0`}),"wan-3-0-reference":q({modelKey:`wan-3-0-reference`,model:N[`reference-to-video__480p__5s`],modelTags:[`audio`,`30s`,`1080p`,`ratio`,`beta`],videoModelPlatform:`wan`,name:`Wan 3.0 Reference`,value:`wan-3-0-reference`,presentationKey:`wan-3-0`}),"minimax-h3-reference":q({modelKey:`minimax-h3-reference`,model:y[`reference-to-video__2k__5s`],modelTags:[`audio`,`15s`,`2k`,`ratio`],videoModelPlatform:`hailuo`,name:`Minimax H3`,value:`minimax-h3-reference`,presentationKey:`minimax-h3`}),"kling-omni-3-reference-std":q({modelKey:`kling-omni-3-reference`,model:p[`std__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 STD`,value:`kling-omni-3-reference-std`,version:`std`,tags:[`standard`],presentationKey:`kling-3-0`}),"kling-omni-3-reference-pro":q({modelKey:`kling-omni-3-reference`,model:p[`pro__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 Pro`,value:`kling-omni-3-reference-pro`,version:`pro`,tags:[`pro`],presentationKey:`kling-3-0`}),"kling-omni-3-reference-4k":q({modelKey:`kling-omni-3-reference`,model:p[`4k__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 4K`,value:`kling-omni-3-reference-4k`,version:`4k`,tags:[`4K`],presentationKey:`kling-3-0`}),"vidu-q3-reference-pro":q({modelKey:`vidu-q3-reference`,model:E[`reference-to-video__540p__5s`],modelTags:[`15s`,`1080p`,`ratio`],videoModelPlatform:`vidu`,name:`Vidu Q3`,value:`vidu-q3-reference-pro`,version:`pro`,tags:[`pro`],presentationKey:`vidu-q3`})},X=[`seedance-2-0-fast-reference`,`seedance-2-0-reference`,`kling-omni-3-reference-std`,`kling-omni-3-reference-pro`,`vidu-q3-reference-pro`],Z={"kling-motion-control-std":q({modelKey:`kling-motion-control`,model:I[`kling-motion-control`],modelTags:[],name:`Kling Motion Control STD`,value:`kling-motion-control-std`,version:`std`,tags:[`standard`]}),"kling-motion-control-pro":q({modelKey:`kling-motion-control`,model:I[`kling-motion-control`],creditSource:f,modelTags:[],name:`Kling Motion Control Pro`,value:`kling-motion-control-pro`,version:`pro`,tags:[`pro`]}),"wan-2-2-animate":q({modelKey:`wan-2-2-animate`,model:I[`wan-2-2-animate`],name:I[`wan-2-2-animate`].name,value:`wan-2-2-animate`})},re=[`kling-motion-control-std`,`kling-motion-control-pro`,`wan-2-2-animate`];function Q(){return[...Object.entries(F).flatMap(([e,t])=>J(e,t)),...Object.entries(P).flatMap(([e,t])=>J(e,t)),...Object.entries(L).flatMap(([e,t])=>J(e,t)),...Object.values(Y),...Object.values(Z)]}function $(e,t=``){let n=Q().find(t=>t.value===e);return n?{model:n.model,version:n.version??t}:{model:e,version:t}}function ie(e){return $(e).model}function ae(e,t=``){return $(e,t).version}function oe(e,t){return Q().find(n=>n.model===e&&n.version===t)?.value??e}export{Y as GROUP_AI_REFERENCE_TO_VIDEO_MODEL_SELECT,X as GROUP_AI_REFERENCE_TO_VIDEO_MODEL_SELECT_RECOMMENDATIONS,R as GROUP_AI_VIDEO_MODEL_SELECT_GROUPS,z as GROUP_AI_VIDEO_MODEL_SELECT_RECOMMENDATIONS,Z as GROUP_AI_VIDEO_TO_VIDEO_MODEL_SELECT,re as GROUP_AI_VIDEO_TO_VIDEO_MODEL_SELECT_RECOMMENDATIONS,J as createVideoModelSelectItems,ie as getVideoModelSelectBaseModel,V as getVideoModelSelectGroupKey,H as getVideoModelSelectPresentationKey,oe as getVideoModelSelectValue,ae as getVideoModelSelectVersion,$ as resolveVideoModelSelectValue};
1
+ import{createModelSelectCreditTag as e,createModelSelectTags as t}from"../model-select.js";import{HAILUO_2_0_PRO_6S_MODEL as n,HAILUO_2_0_PRO_6S_TEXT_TO_VIDEO_MODEL as r,HAILUO_2_0_STANDARD_6S_MODEL as i,HAILUO_2_0_STANDARD_6S_TEXT_TO_VIDEO_MODEL as a}from"./providers/hailuo-2-0.js";import{HAILUO_2_3_FAST_IMAGE_TO_VIDEO_6S as o,HAILUO_2_3_PRO_IMAGE_TO_VIDEO_6S as s,HAILUO_2_3_STANDARD_IMAGE_TO_VIDEO_6S as c}from"./providers/hailuo-2-3.js";import{KLING_2_6_PRO_MODEL_5S as l,KLING_2_6_STD_MODEL_5S as u}from"./providers/kling-2-6.js";import{KLING_3_0_PRO_MODEL_5S as d,KLING_3_0_STD_MODEL_5S as ee}from"./providers/kling-3-0.js";import{KLING_MOTION_CONTROL_2_6_PRO as f}from"./providers/kling-motion-control.js";import{GROUP_KLING_OMNI_3_REFERENCE_MODELS as p}from"./providers/kling-omni-3-reference.js";import{KLING_1_6_MODEL_PRO_5S as m,KLING_1_6_MODEL_STD_5S as h,KLING_2_1_MODEL_MASTER_5S as g,KLING_2_1_MODEL_PRO_5S as _,KLING_2_1_MODEL_STD_5S as v}from"./providers/kling.js";import{GROUP_MINIMAX_H3_REFERENCE_MODELS as y}from"./providers/minimax-h3-reference.js";import{GROUP_SEEDANCE_2_0_FAST_REFERENCE_MODELS as te}from"./providers/seedance-2-0-fast-reference.js";import{GROUP_SEEDANCE_2_0_MINI_REFERENCE_MODELS as ne}from"./providers/seedance-2-0-mini-reference.js";import{GROUP_SEEDANCE_2_0_REFERENCE_MODELS as b}from"./providers/seedance-2-0-reference.js";import{GROUP_SEEDANCE_2_5_REFERENCE_MODELS as x}from"./providers/seedance-2-5-reference.js";import{SEEDANCE_V1_LITE_5S_MODEL as S,SEEDANCE_V1_PRO_5S_MODEL as C}from"./providers/seedance-v1.js";import{VEO_3_1_FAST_VIDEO_MODEL_720P as w,VEO_3_1_VIDEO_MODEL_720P as T}from"./providers/veo-3-1.js";import{GROUP_VIDU_Q3_REFERENCE_MODELS as E}from"./providers/vidu-q3-reference.js";import{WAN_2_5_FAST_IMAGE_TO_VIDEO_MODEL_720P_5S as D,WAN_2_5_FAST_TEXT_TO_VIDEO_MODEL_720P_5S as O,WAN_2_5_IMAGE_TO_VIDEO_MODEL_480P_5S as k,WAN_2_5_TEXT_TO_VIDEO_MODEL_480P_5S as A}from"./providers/wan-2-5.js";import{WAN_2_6_IMAGE_TO_VIDEO_MODEL_720P_5S as j,WAN_2_6_TEXT_TO_VIDEO_MODEL_720P_5S as M}from"./providers/wan-2-6.js";import{GROUP_WAN_3_0_REFERENCE_MODELS as N}from"./providers/wan-3-0-reference.js";import{GROUP_AI_IMAGE_TO_VIDEO_MODEL as P,GROUP_AI_TEXT_TO_VIDEO_MODEL as F,GROUP_AI_VIDEO_TO_VIDEO_MODEL as I,GroupFluxTextToVideoModel as L}from"./group.js";const R=[{name:`Seedance`,value:`seedance`},{name:`Google`,value:`veo`},{name:`Flux`,value:`flux-video`},{name:`Kling`,value:`kling`},{name:`Happy Horse`,value:`happy-horse`},{name:`Wan`,value:`wan`},{name:`Vidu`,value:`vidu`},{name:`MiniMax · Hailuo`,value:`hailuo`},{name:`Grok`,value:`grok`},{name:`Sora`,value:`sora`},{name:`Pixverse`,value:`pixverse`}],z=[`seedance-2-5`,`seedance-2-0-mini`,`seedance-2-0-fast`,`seedance-2-0`,`veo-3-1-fast`,`veo-3-1`],B={"seedance-1-0":[{name:`Seedance 1.0`,value:`seedance-1-0-standard`,version:`standard`,tags:[`standard`],creditSource:S},{name:`Seedance 1.0 Pro`,value:`seedance-1-0-pro`,version:`pro`,tags:[`pro`],creditSource:C}],"veo-3-1":[{name:`VEO 3.1 Fast`,value:`veo-3-1-fast`,version:`veo-3-1-fast`,tags:[`fast`],creditSource:w},{name:`VEO 3.1`,value:`veo-3-1`,version:`veo-3-1`,tags:[`standard`],creditSource:T}],"wan-2-6":[{name:`Wan 2.6`,value:`wan-2-6`,version:`wan-2-6`,tags:[`standard`],creditSourcesByMode:{text:M,image:j}}],"wan-2-5":[{name:`Wan 2.5`,value:`wan-2-5`,version:`wan-v2-5`,tags:[`standard`],creditSourcesByMode:{text:A,image:k}},{name:`Wan 2.5 Fast`,value:`wan-2-5-fast`,version:`wan-v2-5-fast`,tags:[`fast`],creditSourcesByMode:{text:O,image:D}}],"hailuo-2-3":[{name:`Hailuo 2.3 Fast`,value:`hailuo-2-3-fast`,version:`hailuo-2-3-fast`,tags:[`fast`],creditSource:o},{name:`Hailuo 2.3 Standard`,value:`hailuo-2-3-standard`,version:`hailuo-2-3-standard`,tags:[`standard`],creditSource:c},{name:`Hailuo 2.3 Pro`,value:`hailuo-2-3-pro`,version:`hailuo-2-3-pro`,tags:[`pro`],creditSource:s}],"hailuo-2-0":[{name:`Hailuo 2.0 Standard`,value:`hailuo-2-0-standard`,version:`standard`,tags:[`standard`],creditSourcesByMode:{text:a,image:i}},{name:`Hailuo 2.0 Pro`,value:`hailuo-2-0-pro`,version:`pro`,tags:[`pro`],creditSourcesByMode:{text:r,image:n}}],"kling-3-0":[{name:`Kling 3.0 STD`,value:`kling-3-0-std`,version:`std`,tags:[`standard`],creditSource:ee},{name:`Kling 3.0 Pro`,value:`kling-3-0-pro`,version:`pro`,tags:[`pro`],creditSource:d}],"kling-2-6":[{name:`Kling 2.6 STD`,value:`kling-2-6-std`,version:`std`,tags:[`standard`],creditSource:u},{name:`Kling 2.6 Pro`,value:`kling-2-6-pro`,version:`pro`,tags:[`pro`],creditSource:l}],"kling-2-1":[{name:`Kling 2.1 STD`,value:`kling-2-1-std`,version:`std`,tags:[`standard`],creditSource:v},{name:`Kling 2.1 Pro`,value:`kling-2-1-pro`,version:`pro`,tags:[`pro`],creditSource:_},{name:`Kling 2.1 Master`,value:`kling-2-1-master`,version:`master`,tags:[`master`],creditSource:g}],"kling-1-6":[{name:`Kling 1.6 STD`,value:`kling-1-6-std`,version:`std`,tags:[`standard`],creditSource:h},{name:`Kling 1.6 Pro`,value:`kling-1-6-pro`,version:`pro`,tags:[`pro`],creditSource:m}]};function V(e,t){return t||(e.startsWith(`happy-horse`)?`happy-horse`:e.startsWith(`seedance`)?`seedance`:e.startsWith(`kling`)?`kling`:e.startsWith(`wan`)?`wan`:e.startsWith(`vidu`)?`vidu`:e.startsWith(`hailuo`)?`hailuo`:e.startsWith(`grok`)?`grok`:e.startsWith(`sora`)?`sora`:e.startsWith(`pixverse`)?`pixverse`:e.startsWith(`veo`)?`veo`:`video`)}function H(e){return e===`happy-horse-1-1`?`happy-horse-1-0`:e===`seedance-2-0-fast`||e===`seedance-2-0-mini`||e===`seedance-2-5`?`seedance-2-0`:e===`wan-2-7-lora`?`wan-2-7`:e}function U(e){return e.startsWith(`seedance-2-0`)||e.startsWith(`seedance-2-5`)?t([`new`]):void 0}function W(e){return[`fast`,`standard`,`pro`,`master`].includes(e)}function G(t){return e(t.creditPerSecond??t.credit,t.creditPerSecond!==void 0)}function K({model:e,tags:n,creditSource:r}){let i=n?.some(W),a=e.infoTags?.filter(e=>e!==`multiVersion`&&!e.includes(`credits`)&&!(i&&W(e)))||[],o=t([...n||[],...e.modelTags||[],...a])||[],s=o.filter((e,t)=>o.findIndex(t=>t.value===e.value)===t);return[G(r??e),...s]}function q({modelKey:e,model:t,name:n,value:r,version:i,presentationKey:a=H(e),tags:o,creditSource:s,modelTags:c=t.modelTags,infoTags:l=t.infoTags,videoModelPlatform:u=t.videoModelPlatform}){return{name:n,value:r,group:V(e,u),model:e,presentationKey:a,version:i,topTags:U(e),bottomTags:K({model:{credit:t.credit,creditPerSecond:t.creditPerSecond,modelTags:c,infoTags:l},tags:o,creditSource:s})}}function J(e,t,n){let r=B[e];return r?r.filter(e=>!n||!e.modes||e.modes.includes(n)).map(r=>q({modelKey:e,model:t,name:r.name,value:r.value,version:r.version,presentationKey:r.presentationKey||H(e),tags:r.tags,creditSource:(n&&r.creditSourcesByMode?.[n])??r.creditSource})):[q({modelKey:e,model:t,name:t.name,value:e})]}const Y={"seedance-2-5-reference":q({modelKey:`seedance-2-5-reference`,model:x[`reference-to-video__480p__5s`],modelTags:[`audio`,`30s`,`1080p`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.5`,value:`seedance-2-5-reference`,presentationKey:`seedance-2-0`}),"seedance-2-0-mini-reference":q({modelKey:`seedance-2-0-mini-reference`,model:ne[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0 Mini`,value:`seedance-2-0-mini-reference`,presentationKey:`seedance-2-0`}),"seedance-2-0-fast-reference":q({modelKey:`seedance-2-0-fast-reference`,model:te[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0 Fast`,value:`seedance-2-0-fast-reference`,tags:[`fast`],presentationKey:`seedance-2-0`}),"seedance-2-0-reference":q({modelKey:`seedance-2-0-reference`,model:b[`reference-to-video__480p__5s`],modelTags:[`audio`,`15s`,`4K`,`ratio`],videoModelPlatform:`seedance`,name:`Seedance 2.0`,value:`seedance-2-0-reference`,tags:[`standard`],presentationKey:`seedance-2-0`}),"wan-3-0-reference":q({modelKey:`wan-3-0-reference`,model:N[`reference-to-video__480p__5s`],modelTags:[`audio`,`30s`,`1080p`,`ratio`,`beta`],videoModelPlatform:`wan`,name:`Wan 3.0`,value:`wan-3-0-reference`,presentationKey:`wan-3-0`}),"minimax-h3-reference":q({modelKey:`minimax-h3-reference`,model:y[`reference-to-video__2k__5s`],modelTags:[`audio`,`15s`,`2k`,`ratio`],videoModelPlatform:`hailuo`,name:`Minimax H3`,value:`minimax-h3-reference`,presentationKey:`minimax-h3`}),"kling-omni-3-reference-std":q({modelKey:`kling-omni-3-reference`,model:p[`std__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 STD`,value:`kling-omni-3-reference-std`,version:`std`,tags:[`standard`],presentationKey:`kling-3-0`}),"kling-omni-3-reference-pro":q({modelKey:`kling-omni-3-reference`,model:p[`pro__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 Pro`,value:`kling-omni-3-reference-pro`,version:`pro`,tags:[`pro`],presentationKey:`kling-3-0`}),"kling-omni-3-reference-4k":q({modelKey:`kling-omni-3-reference`,model:p[`4k__reference-to-video__4k__5s`],modelTags:[`15s`,`ratio`],videoModelPlatform:`kling`,name:`Kling Omni 3 4K`,value:`kling-omni-3-reference-4k`,version:`4k`,tags:[`4K`],presentationKey:`kling-3-0`}),"vidu-q3-reference-pro":q({modelKey:`vidu-q3-reference`,model:E[`reference-to-video__540p__5s`],modelTags:[`15s`,`1080p`,`ratio`],videoModelPlatform:`vidu`,name:`Vidu Q3`,value:`vidu-q3-reference-pro`,version:`pro`,tags:[`pro`],presentationKey:`vidu-q3`})},X=[`seedance-2-0-fast-reference`,`seedance-2-0-reference`,`kling-omni-3-reference-std`,`kling-omni-3-reference-pro`,`vidu-q3-reference-pro`],Z={"kling-motion-control-std":q({modelKey:`kling-motion-control`,model:I[`kling-motion-control`],modelTags:[],name:`Kling Motion Control STD`,value:`kling-motion-control-std`,version:`std`,tags:[`standard`]}),"kling-motion-control-pro":q({modelKey:`kling-motion-control`,model:I[`kling-motion-control`],creditSource:f,modelTags:[],name:`Kling Motion Control Pro`,value:`kling-motion-control-pro`,version:`pro`,tags:[`pro`]}),"wan-2-2-animate":q({modelKey:`wan-2-2-animate`,model:I[`wan-2-2-animate`],name:I[`wan-2-2-animate`].name,value:`wan-2-2-animate`})},re=[`kling-motion-control-std`,`kling-motion-control-pro`,`wan-2-2-animate`];function Q(){return[...Object.entries(F).flatMap(([e,t])=>J(e,t)),...Object.entries(P).flatMap(([e,t])=>J(e,t)),...Object.entries(L).flatMap(([e,t])=>J(e,t)),...Object.values(Y),...Object.values(Z)]}function $(e,t=``){let n=Q().find(t=>t.value===e);return n?{model:n.model,version:n.version??t}:{model:e,version:t}}function ie(e){return $(e).model}function ae(e,t=``){return $(e,t).version}function oe(e,t){return Q().find(n=>n.model===e&&n.version===t)?.value??e}export{Y as GROUP_AI_REFERENCE_TO_VIDEO_MODEL_SELECT,X as GROUP_AI_REFERENCE_TO_VIDEO_MODEL_SELECT_RECOMMENDATIONS,R as GROUP_AI_VIDEO_MODEL_SELECT_GROUPS,z as GROUP_AI_VIDEO_MODEL_SELECT_RECOMMENDATIONS,Z as GROUP_AI_VIDEO_TO_VIDEO_MODEL_SELECT,re as GROUP_AI_VIDEO_TO_VIDEO_MODEL_SELECT_RECOMMENDATIONS,J as createVideoModelSelectItems,ie as getVideoModelSelectBaseModel,V as getVideoModelSelectGroupKey,H as getVideoModelSelectPresentationKey,oe as getVideoModelSelectValue,ae as getVideoModelSelectVersion,$ as resolveVideoModelSelectValue};
@@ -1 +1 @@
1
- import{adaptParameterList as e,adaptParameterListWithPresentation as t}from"../../../parameter-list-adapter.js";import{adaptVideoWebVideoModel as n}from"../adapter.js";import{VIDEO_WAN_3_0_REFERENCE_MODELS as r,WAN_3_0_REFERENCE_DURATION_LIST as i,WAN_3_0_REFERENCE_RATIO_LIST as a,WAN_3_0_REFERENCE_RESOLUTION_LIST as o}from"@flaqai/model-core";const s=Object.freeze({maxImages:10,maxAudioReferences:5,maxVideoReferences:5,maxFileReferences:1,maxLinkReferences:1,maxAudioTotalSeconds:15,maxVideoTotalSeconds:15}),c=e(o),l=e(i),u=t(a,{"16:9":{iconWidth:`16`,iconHeight:`9`},"9:16":{iconWidth:`9`,iconHeight:`16`},"4:3":{iconWidth:`16`,iconHeight:`12`},"3:4":{iconWidth:`12`,iconHeight:`16`},"1:1":{iconWidth:`14`,iconHeight:`14`}});function d({resolution:e,duration:t}){return n(r[`wan-v3.0-reference-to-video-${e}-${t}`],{parameterOverride:{maxImages:s.maxImages,supportAudio:!0,supportEndFrame:!1,supportRatio:!0,supportStartFrame:!1,supportTextToVideo:!1,supportVideo:!0},name:`Wan 3.0 Reference ${e} (${t})`,pricingType:`video`,isPaid:!1,videoType:`wan-ai-video-3-0-reference`,ratioList:u,videoModelPlatform:`wan`})}const f=d({resolution:`480p`,duration:`5s`}),p=d({resolution:`480p`,duration:`10s`}),m=d({resolution:`480p`,duration:`15s`}),h=d({resolution:`480p`,duration:`20s`}),g=d({resolution:`480p`,duration:`25s`}),_=d({resolution:`480p`,duration:`30s`}),v=d({resolution:`720p`,duration:`5s`}),y=d({resolution:`720p`,duration:`10s`}),b=d({resolution:`720p`,duration:`15s`}),x=d({resolution:`720p`,duration:`20s`}),S=d({resolution:`720p`,duration:`25s`}),C=d({resolution:`720p`,duration:`30s`}),w=d({resolution:`1080p`,duration:`5s`}),T=d({resolution:`1080p`,duration:`10s`}),E=d({resolution:`1080p`,duration:`15s`}),D=d({resolution:`1080p`,duration:`20s`}),O=d({resolution:`1080p`,duration:`25s`}),k=d({resolution:`1080p`,duration:`30s`}),A={"reference-to-video__480p__5s":f,"reference-to-video__480p__10s":p,"reference-to-video__480p__15s":m,"reference-to-video__480p__20s":h,"reference-to-video__480p__25s":g,"reference-to-video__480p__30s":_,"reference-to-video__720p__5s":v,"reference-to-video__720p__10s":y,"reference-to-video__720p__15s":b,"reference-to-video__720p__20s":x,"reference-to-video__720p__25s":S,"reference-to-video__720p__30s":C,"reference-to-video__1080p__5s":w,"reference-to-video__1080p__10s":T,"reference-to-video__1080p__15s":E,"reference-to-video__1080p__20s":D,"reference-to-video__1080p__25s":O,"reference-to-video__1080p__30s":k};export{A as GROUP_WAN_3_0_REFERENCE_MODELS,l as WAN_3_0_REFERENCE_DURATION_LIST,s as WAN_3_0_REFERENCE_INPUT_LIMITS,u as WAN_3_0_REFERENCE_RATIO_LIST,c as WAN_3_0_REFERENCE_RESOLUTION_LIST,T as WAN_3_0_REFERENCE_TO_VIDEO_1080P_10S_MODEL,E as WAN_3_0_REFERENCE_TO_VIDEO_1080P_15S_MODEL,D as WAN_3_0_REFERENCE_TO_VIDEO_1080P_20S_MODEL,O as WAN_3_0_REFERENCE_TO_VIDEO_1080P_25S_MODEL,k as WAN_3_0_REFERENCE_TO_VIDEO_1080P_30S_MODEL,w as WAN_3_0_REFERENCE_TO_VIDEO_1080P_5S_MODEL,p as WAN_3_0_REFERENCE_TO_VIDEO_480P_10S_MODEL,m as WAN_3_0_REFERENCE_TO_VIDEO_480P_15S_MODEL,h as WAN_3_0_REFERENCE_TO_VIDEO_480P_20S_MODEL,g as WAN_3_0_REFERENCE_TO_VIDEO_480P_25S_MODEL,_ as WAN_3_0_REFERENCE_TO_VIDEO_480P_30S_MODEL,f as WAN_3_0_REFERENCE_TO_VIDEO_480P_5S_MODEL,y as WAN_3_0_REFERENCE_TO_VIDEO_720P_10S_MODEL,b as WAN_3_0_REFERENCE_TO_VIDEO_720P_15S_MODEL,x as WAN_3_0_REFERENCE_TO_VIDEO_720P_20S_MODEL,S as WAN_3_0_REFERENCE_TO_VIDEO_720P_25S_MODEL,C as WAN_3_0_REFERENCE_TO_VIDEO_720P_30S_MODEL,v as WAN_3_0_REFERENCE_TO_VIDEO_720P_5S_MODEL};
1
+ import{adaptParameterList as e,adaptParameterListWithPresentation as t}from"../../../parameter-list-adapter.js";import{adaptVideoWebVideoModel as n}from"../adapter.js";import{VIDEO_WAN_3_0_REFERENCE_MODELS as r,WAN_3_0_REFERENCE_DURATION_LIST as i,WAN_3_0_REFERENCE_RATIO_LIST as a,WAN_3_0_REFERENCE_RESOLUTION_LIST as o}from"@flaqai/model-core";const s=Object.freeze({maxImages:10,maxAudioReferences:5,maxVideoReferences:5,maxFileReferences:1,maxLinkReferences:1,maxAudioTotalSeconds:15,maxVideoTotalSeconds:15}),c=e(o),l=e(i),u=t(a,{"16:9":{iconWidth:`16`,iconHeight:`9`},"9:16":{iconWidth:`9`,iconHeight:`16`},"4:3":{iconWidth:`16`,iconHeight:`12`},"3:4":{iconWidth:`12`,iconHeight:`16`},"1:1":{iconWidth:`14`,iconHeight:`14`}});function d({resolution:e,duration:t}){return n(r[`wan-v3.0-reference-to-video-${e}-${t}`],{parameterOverride:{maxImages:s.maxImages,supportAudio:!0,supportEndFrame:!1,supportRatio:!0,supportStartFrame:!1,supportTextToVideo:!1,supportVideo:!0},name:`Wan 3.0 ${e} (${t})`,pricingType:`video`,isPaid:!1,videoType:`wan-ai-video-3-0-reference`,ratioList:u,videoModelPlatform:`wan`})}const f=d({resolution:`480p`,duration:`5s`}),p=d({resolution:`480p`,duration:`10s`}),m=d({resolution:`480p`,duration:`15s`}),h=d({resolution:`480p`,duration:`20s`}),g=d({resolution:`480p`,duration:`25s`}),_=d({resolution:`480p`,duration:`30s`}),v=d({resolution:`720p`,duration:`5s`}),y=d({resolution:`720p`,duration:`10s`}),b=d({resolution:`720p`,duration:`15s`}),x=d({resolution:`720p`,duration:`20s`}),S=d({resolution:`720p`,duration:`25s`}),C=d({resolution:`720p`,duration:`30s`}),w=d({resolution:`1080p`,duration:`5s`}),T=d({resolution:`1080p`,duration:`10s`}),E=d({resolution:`1080p`,duration:`15s`}),D=d({resolution:`1080p`,duration:`20s`}),O=d({resolution:`1080p`,duration:`25s`}),k=d({resolution:`1080p`,duration:`30s`}),A={"reference-to-video__480p__5s":f,"reference-to-video__480p__10s":p,"reference-to-video__480p__15s":m,"reference-to-video__480p__20s":h,"reference-to-video__480p__25s":g,"reference-to-video__480p__30s":_,"reference-to-video__720p__5s":v,"reference-to-video__720p__10s":y,"reference-to-video__720p__15s":b,"reference-to-video__720p__20s":x,"reference-to-video__720p__25s":S,"reference-to-video__720p__30s":C,"reference-to-video__1080p__5s":w,"reference-to-video__1080p__10s":T,"reference-to-video__1080p__15s":E,"reference-to-video__1080p__20s":D,"reference-to-video__1080p__25s":O,"reference-to-video__1080p__30s":k};export{A as GROUP_WAN_3_0_REFERENCE_MODELS,l as WAN_3_0_REFERENCE_DURATION_LIST,s as WAN_3_0_REFERENCE_INPUT_LIMITS,u as WAN_3_0_REFERENCE_RATIO_LIST,c as WAN_3_0_REFERENCE_RESOLUTION_LIST,T as WAN_3_0_REFERENCE_TO_VIDEO_1080P_10S_MODEL,E as WAN_3_0_REFERENCE_TO_VIDEO_1080P_15S_MODEL,D as WAN_3_0_REFERENCE_TO_VIDEO_1080P_20S_MODEL,O as WAN_3_0_REFERENCE_TO_VIDEO_1080P_25S_MODEL,k as WAN_3_0_REFERENCE_TO_VIDEO_1080P_30S_MODEL,w as WAN_3_0_REFERENCE_TO_VIDEO_1080P_5S_MODEL,p as WAN_3_0_REFERENCE_TO_VIDEO_480P_10S_MODEL,m as WAN_3_0_REFERENCE_TO_VIDEO_480P_15S_MODEL,h as WAN_3_0_REFERENCE_TO_VIDEO_480P_20S_MODEL,g as WAN_3_0_REFERENCE_TO_VIDEO_480P_25S_MODEL,_ as WAN_3_0_REFERENCE_TO_VIDEO_480P_30S_MODEL,f as WAN_3_0_REFERENCE_TO_VIDEO_480P_5S_MODEL,y as WAN_3_0_REFERENCE_TO_VIDEO_720P_10S_MODEL,b as WAN_3_0_REFERENCE_TO_VIDEO_720P_15S_MODEL,x as WAN_3_0_REFERENCE_TO_VIDEO_720P_20S_MODEL,S as WAN_3_0_REFERENCE_TO_VIDEO_720P_25S_MODEL,C as WAN_3_0_REFERENCE_TO_VIDEO_720P_30S_MODEL,v as WAN_3_0_REFERENCE_TO_VIDEO_720P_5S_MODEL};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flaqai/model-adapter",
3
- "version": "0.2.37",
3
+ "version": "0.2.38",
4
4
  "description": "Product adapters for Flaq canonical model facts.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@flaqai/model-core": "^0.2.37"
33
+ "@flaqai/model-core": "^0.2.38"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@typescript/native-preview": "7.0.0-dev.20260707.2",