mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(OpenAI Chat Model Node): Respect baseURL override for /models (#10076)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user