@@ -14,7 +14,6 @@ import {
1414} from '@/lib/workflows/subblocks/visibility'
1515import { getBlock } from '@/blocks'
1616import type { SubBlockConfig } from '@/blocks/types'
17- import { getProviderFromModel } from '@/providers/utils'
1817import type { SerializedBlock , SerializedWorkflow } from '@/serializer/types'
1918import type { BlockState , Loop , Parallel } from '@/stores/workflows/workflow/types'
2019import { generateLoopBlocks , generateParallelBlocks } from '@/stores/workflows/workflow/utils'
@@ -71,6 +70,7 @@ function shouldSerializeSubBlock(
7170 : group . basicId === subBlockConfig . id
7271 return matchesMode && evaluateSubBlockCondition ( subBlockConfig . condition , values )
7372 }
73+ console . log ( '[FUCK] subBlockConfig.condition' , subBlockConfig . condition , values )
7474 return evaluateSubBlockCondition ( subBlockConfig . condition , values )
7575 }
7676
@@ -525,16 +525,6 @@ export class Serializer {
525525 const canonicalId = canonicalIndex . canonicalIdBySubBlockId [ subBlockConfig . id ]
526526 const fieldValue = canonicalId ? params [ canonicalId ] : params [ subBlockConfig . id ]
527527 if ( fieldValue === undefined || fieldValue === null || fieldValue === '' ) {
528- if ( subBlockConfig . id === 'apiKey' && params . model ) {
529- try {
530- const provider = getProviderFromModel ( params . model as string )
531- if ( provider === 'ollama' || provider === 'vllm' ) {
532- return
533- }
534- } catch {
535- // If provider resolution fails, continue with validation
536- }
537- }
538528 missingFields . push ( subBlockConfig . title || subBlockConfig . id )
539529 }
540530 } )
0 commit comments