Freigeben über


OnYourDataEndpointVectorizationSource Constructor

Definition

Initializes a new instance of OnYourDataEndpointVectorizationSource.

public OnYourDataEndpointVectorizationSource (Uri endpoint, Azure.AI.OpenAI.OnYourDataAuthenticationOptions authentication);
new Azure.AI.OpenAI.OnYourDataEndpointVectorizationSource : Uri * Azure.AI.OpenAI.OnYourDataAuthenticationOptions -> Azure.AI.OpenAI.OnYourDataEndpointVectorizationSource
Public Sub New (endpoint As Uri, authentication As OnYourDataAuthenticationOptions)

Parameters

endpoint
Uri

Specifies the resource endpoint URL from which embeddings should be retrieved. It should be in the format of https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings. The api-version query parameter is not allowed.

authentication
OnYourDataAuthenticationOptions

Specifies the authentication options to use when retrieving embeddings from the specified endpoint. Please note OnYourDataAuthenticationOptions is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include OnYourDataAccessTokenAuthenticationOptions, OnYourDataApiKeyAuthenticationOptions, OnYourDataConnectionStringAuthenticationOptions, OnYourDataEncodedApiKeyAuthenticationOptions, OnYourDataKeyAndKeyIdAuthenticationOptions, OnYourDataSystemAssignedManagedIdentityAuthenticationOptions and OnYourDataUserAssignedManagedIdentityAuthenticationOptions.

Exceptions

endpoint or authentication is null.

Applies to