fix(Embeddings OpenAI Node): Fix dynamic models fetching (#8533)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg 2024-02-02 12:27:13 +01:00 committed by GitHub
parent 76c5a62f52
commit cccdfc73d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,11 @@ export class EmbeddingsOpenAi implements INodeType {
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
outputs: [NodeConnectionType.AiEmbedding],
outputNames: ['Embeddings'],
requestDefaults: {
ignoreHttpStatusErrors: true,
baseURL:
'={{ $parameter.options?.baseURL?.split("/").slice(0,-1).join("/") || "https://api.openai.com" }}',
},
properties: [
getConnectionHintNoticeField([NodeConnectionType.AiVectorStore]),
{