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,