Skip to content

Commit 37aff89

Browse files
committed
removed ollama handling
1 parent d431c8d commit 37aff89

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

apps/sim/serializer/index.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
} from '@/lib/workflows/subblocks/visibility'
1515
import { getBlock } from '@/blocks'
1616
import type { SubBlockConfig } from '@/blocks/types'
17-
import { getProviderFromModel } from '@/providers/utils'
1817
import type { SerializedBlock, SerializedWorkflow } from '@/serializer/types'
1918
import type { BlockState, Loop, Parallel } from '@/stores/workflows/workflow/types'
2019
import { 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

Comments
 (0)