Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading: "AzureOpenAIParameters" no longer option in "azure.search.documents.indexes.models" #257

Open
tush05tgsingh opened this issue Jul 30, 2024 · 1 comment

Comments

@tush05tgsingh
Copy link

Code in - demo-python/code/basic-vector-workflow/azure-search-vector-python-sample.ipynb

The latest update no longer has certain functionality such as - AzureOpenAIParameters

@hk4git
Copy link

hk4git commented Aug 14, 2024

Code in - demo-python/code/basic-vector-workflow/azure-search-vector-python-sample.ipynb

The latest update no longer has certain functionality such as - AzureOpenAIParameters

It has now become just AzureOpenAIVectorizerParameters, you can assigne it like:

  Vectorizers =
  {
      new AzureOpenAIVectorizer(vectorSearchVectorizer)
      {
          Parameters = new AzureOpenAIVectorizerParameters()
          {
              ResourceUri = new Uri(configuration.AzureOpenAIEndpoint),
              ApiKey = configuration.AzureOpenAIApiKey,
              //DeploymentId = configuration.AzureOpenAIEmbeddingDeployedModel,
              DeploymentName =  configuration.AzureOpenAIEmbeddingDeployedModel,
          }
      }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants