fix(OpenAI Chat Model Node): Respect baseURL override for /models (#10076)

This commit is contained in:
oleg
2024-07-17 08:25:16 +02:00
committed by GitHub
parent 09f2cf9eaf
commit e5dda5731d
5 changed files with 304 additions and 4 deletions

View File

@@ -359,7 +359,7 @@ const declarativeNodeOptionParameters: INodeProperties = {
export function isSubNodeType(
typeDescription: Pick<INodeTypeDescription, 'outputs'> | null,
): boolean {
if (!typeDescription || !typeDescription.outputs || typeof typeDescription.outputs === 'string') {
if (!typeDescription?.outputs || typeof typeDescription.outputs === 'string') {
return false;
}
const outputTypes = getConnectionTypes(typeDescription.outputs);
@@ -521,6 +521,9 @@ const checkConditions = (
if (key === 'regex') {
return new RegExp(targetValue as string).test(propertyValue as string);
}
if (key === 'exists') {
return propertyValue !== null && propertyValue !== undefined && propertyValue !== '';
}
return false;
});
}