This commit is contained in:
Siddharth Ganesan
2026-01-26 10:21:01 -08:00
parent 62b06d00de
commit 315d9ee3f9

View File

@@ -2609,9 +2609,7 @@ async function preValidateCredentialInputs(
model: string
}> = []
const hostedModelsLower = isHosted
? new Set(getHostedModels().map((m) => m.toLowerCase()))
: null
const hostedModelsLower = isHosted ? new Set(getHostedModels().map((m) => m.toLowerCase())) : null
operations.forEach((op, opIndex) => {
if (!op.params?.inputs || !op.params?.type) return
@@ -2668,7 +2666,7 @@ async function preValidateCredentialInputs(
for (const apiKeyInput of hostedApiKeyInputs) {
const op = filteredOperations[apiKeyInput.operationIndex]
if (op.params?.inputs?.apiKey) {
delete op.params.inputs.apiKey
op.params.inputs.apiKey = undefined
logger.debug('Silently filtered apiKey for hosted model', {
blockId: apiKeyInput.blockId,
model: apiKeyInput.model,