mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(AWS Bedrock Chat Model Node): Do not show issues for arbitrary model names (#17079)
This commit is contained in:
@@ -359,6 +359,13 @@ export function parseFromExpression(
|
||||
return null;
|
||||
}
|
||||
|
||||
export function shouldSkipParamValidation(value: string | number | boolean | null) {
|
||||
return typeof value === 'string' && value.includes(CUSTOM_API_CALL_KEY);
|
||||
export function shouldSkipParamValidation(
|
||||
parameter: INodeProperties,
|
||||
value: NodeParameterValueType,
|
||||
) {
|
||||
return (
|
||||
(typeof value === 'string' && value.includes(CUSTOM_API_CALL_KEY)) ||
|
||||
(['options', 'multiOptions'].includes(parameter.type) &&
|
||||
Boolean(parameter.allowArbitraryValues))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user