mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix(OpenAI Chat Model Node): Respect baseURL override for /models (#10076)
This commit is contained in:
@@ -1296,7 +1296,8 @@ export type DisplayCondition =
|
||||
| { _cnd: { startsWith: string } }
|
||||
| { _cnd: { endsWith: string } }
|
||||
| { _cnd: { includes: string } }
|
||||
| { _cnd: { regex: string } };
|
||||
| { _cnd: { regex: string } }
|
||||
| { _cnd: { exists: true } };
|
||||
|
||||
export interface IDisplayOptions {
|
||||
hide?: {
|
||||
|
||||
@@ -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