We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df3b2ff commit de7390bCopy full SHA for de7390b
1 file changed
apps/sim/lib/copilot/tools/server/workflow/edit-workflow/validation.ts
@@ -356,12 +356,7 @@ export function validateValueForSubBlockType(
356
fieldName === 'model' && subBlockConfig.options === getModelOptions
357
358
if (usesProviderCatalog) {
359
- const stringValue =
360
- typeof value === 'string'
361
- ? value
362
- : typeof value === 'number'
363
- ? String(value)
364
- : String(value)
+ const stringValue = typeof value === 'string' ? value : String(value)
365
const trimmed = stringValue.trim()
366
if (trimmed !== '' && !isKnownModelId(trimmed)) {
367
const suggestions = suggestModelIdsForUnknownModel(trimmed)
0 commit comments