From 37d6cfc06cbbf6b07f991309ff69b0599ca27bd3 Mon Sep 17 00:00:00 2001 From: JP van Oosten Date: Thu, 19 Dec 2024 14:17:59 +0100 Subject: [PATCH] fix(OpenAI Node): Add quotes to default base URL --- packages/nodes-base/nodes/OpenAi/OpenAi.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/OpenAi/OpenAi.node.ts b/packages/nodes-base/nodes/OpenAi/OpenAi.node.ts index a936337136e9f..7e57a33db7fd9 100644 --- a/packages/nodes-base/nodes/OpenAi/OpenAi.node.ts +++ b/packages/nodes-base/nodes/OpenAi/OpenAi.node.ts @@ -29,7 +29,7 @@ export class OpenAi implements INodeType { requestDefaults: { ignoreHttpStatusErrors: true, baseURL: - '={{ $credentials.url?.split("/").slice(0,-1).join("/") || https://api.openai.com }}', + '={{ $credentials.url?.split("/").slice(0,-1).join("/") ?? "https://api.openai.com" }}', }, properties: [ oldVersionNotice,