| 53 | const FALAI_AUDIO_DEFAULT_OFF_MODELS = ['kling-o3-pro', 'kling-o3-4k'] |
| 54 | |
| 55 | const 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 | |
| 73 | export const VideoGeneratorBlock: BlockConfig<VideoBlockResponse> = { |
| 74 | type: 'video_generator', |