From 2e90eba47eff81f8b17a305cbc1656f929d622f8 Mon Sep 17 00:00:00 2001 From: jeanpaul Date: Thu, 19 Dec 2024 15:40:06 +0100 Subject: [PATCH] fix(OpenAI Node): Add quotes to default base URL (#12312) --- 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,