typescript-client icon indicating copy to clipboard operation
typescript-client copied to clipboard

💅 Update `text2vec-azure-openai` to utilize `isAzure: true` flag and mark `resourceName` + `deploymentId` as optional

Open flipace opened this issue 1 year ago • 1 comments

This relates to the changes in https://github.com/weaviate/weaviate/pull/5776

With this adjustment, devs can use the text2VecAzureOpenAI vectorizer, without specifying deploymentId or resourceName upfront for their collection.

Instead, they may provide the headers X-Azure-Deployment-Id and X-Azure-Resource-Name in their requests to set these.

vectorizer.text2VecAzureOpenAI({
  vectorizeCollectionName: false,
})

Internally, using text2VecAzureOpenAI will set the an isAzure: true flag for the OpenAI vectorizer, so it understands that the Azure logic must be used.

flipace avatar Sep 18 '24 08:09 flipace

Great to see you again! Thanks for the contribution.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

weaviate-git-bot avatar Sep 18 '24 10:09 weaviate-git-bot