fix(OpenAI Node): Add quotes to default base URL (#12312)

This commit is contained in:
jeanpaul 2024-12-19 15:40:06 +01:00 committed by GitHub
parent 0ba4c6e942
commit 2e90eba47e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,