File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
apps/sim/lib/copilot/tools/server/workflow Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2609,9 +2609,7 @@ async function preValidateCredentialInputs(
26092609 model : string
26102610 } > = [ ]
26112611
2612- const hostedModelsLower = isHosted
2613- ? new Set ( getHostedModels ( ) . map ( ( m ) => m . toLowerCase ( ) ) )
2614- : null
2612+ const hostedModelsLower = isHosted ? new Set ( getHostedModels ( ) . map ( ( m ) => m . toLowerCase ( ) ) ) : null
26152613
26162614 operations . forEach ( ( op , opIndex ) => {
26172615 if ( ! op . params ?. inputs || ! op . params ?. type ) return
@@ -2668,7 +2666,7 @@ async function preValidateCredentialInputs(
26682666 for ( const apiKeyInput of hostedApiKeyInputs ) {
26692667 const op = filteredOperations [ apiKeyInput . operationIndex ]
26702668 if ( op . params ?. inputs ?. apiKey ) {
2671- delete op . params . inputs . apiKey
2669+ op . params . inputs . apiKey = undefined
26722670 logger . debug ( 'Silently filtered apiKey for hosted model' , {
26732671 blockId : apiKeyInput . blockId ,
26742672 model : apiKeyInput . model ,
You can’t perform that action at this time.
0 commit comments