ภาษา

SearchModelFactory.KnowledgeBaseOpenAICompatibleParameters Method

Definition

Connection parameters for an OpenAI-compatible Chat Completions or Responses endpoint. Creation requires exactly one of nonempty headers or managedIdentityAudience. Updates can omit headers to preserve credentials for an unchanged connection and model profile.

public static Azure.Search.Documents.Indexes.Models.KnowledgeBaseOpenAICompatibleParameters KnowledgeBaseOpenAICompatibleParameters(Uri uri = default, Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName modelName = default, System.Collections.Generic.IDictionary<string,string> headers = default, string managedIdentityAudience = default, Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity authIdentity = default);
static member KnowledgeBaseOpenAICompatibleParameters : Uri * Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName * System.Collections.Generic.IDictionary<string, string> * string * Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity -> Azure.Search.Documents.Indexes.Models.KnowledgeBaseOpenAICompatibleParameters
Public Shared Function KnowledgeBaseOpenAICompatibleParameters (Optional uri As Uri = Nothing, Optional modelName As AzureOpenAIModelName = Nothing, Optional headers As IDictionary(Of String, String) = Nothing, Optional managedIdentityAudience As String = Nothing, Optional authIdentity As SearchIndexerDataIdentity = Nothing) As KnowledgeBaseOpenAICompatibleParameters

Parameters

uri
Uri

The complete HTTPS POST URL, including path and query parameters. Sent unchanged without appending a path or API version; redirects are not followed. For knowledge base retrieval, the endpoint must accept the model profile's Chat Completions or Responses protocol. For knowledge source image verbalization, the URI path must end in /chat/completions or /responses; query parameters do not select the protocol.

modelName
AzureOpenAIModelName

A supported chat model name that determines Search's capabilities and limits. For knowledge source image verbalization, this is sent as the model selector in the request body; the URI path selects Chat Completions or Responses independently of this name. For knowledge base retrieval, GPT-6 model profiles use Responses and existing model profiles use Chat Completions; the endpoint must support the selected protocol, including stateless tool continuation for Responses. The retrieval request body omits model; the URI or gateway selects the actual model and supplies any required provider model identifier. Embedding models and arbitrary provider protocols are not supported.

headers
IDictionary<String,String>

Nonempty stored HTTP headers for endpoint authentication. Both names and values are secret and are never returned in responses. Empty maps are invalid. Mutually exclusive with managedIdentityAudience and authIdentity. On update, omitted headers are preserved only on the same resource and model binding when the exact endpoint, model profile, and authentication identity are unchanged; otherwise, supply fresh credentials.

managedIdentityAudience
String

The bare canonical application GUID of the customer's third-party Microsoft Entra application for managed identity authentication. Do not include an api:// prefix or /.default suffix. Mutually exclusive with headers.

authIdentity
SearchIndexerDataIdentity

The user-assigned managed identity used to acquire a token for managedIdentityAudience. Omit to use the search service's system-assigned identity. Allowed only with managedIdentityAudience.

Returns

A new KnowledgeBaseOpenAICompatibleParameters instance for mocking.

Applies to