MCPcopy Index your code
hub / github.com/simstudioai/sim / withFalAIModelOptions

Function withFalAIModelOptions

apps/sim/blocks/blocks/video_generator.ts:55–71  ·  view source on GitHub ↗
(
  subBlocks: SubBlockConfig[],
  options: SubBlockConfig['options']
)

Source from the content-addressed store, hash-verified

53const FALAI_AUDIO_DEFAULT_OFF_MODELS = ['kling-o3-pro', 'kling-o3-4k']
54
55const withFalAIModelOptions = (
56 subBlocks: SubBlockConfig[],
57 options: SubBlockConfig['options']
58): SubBlockConfig[] =>
59 subBlocks.map((subBlock) => {
60 const condition = subBlock.condition
61 if (
62 subBlock.id === 'model' &&
63 typeof condition === 'object' &&
64 condition?.field === 'provider' &&
65 condition.value === 'falai'
66 ) {
67 return { ...subBlock, options }
68 }
69
70 return subBlock
71 })
72
73export const VideoGeneratorBlock: BlockConfig<VideoBlockResponse> = {
74 type: 'video_generator',

Callers 1

video_generator.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected