ภาษา

KnowledgeBaseOpenAICompatibleParameters(Uri, AzureOpenAIModelName) Constructor

Definition

Initializes a new instance of KnowledgeBaseOpenAICompatibleParameters.

public KnowledgeBaseOpenAICompatibleParameters(Uri uri, Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName modelName);
new Azure.Search.Documents.Indexes.Models.KnowledgeBaseOpenAICompatibleParameters : Uri * Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName -> Azure.Search.Documents.Indexes.Models.KnowledgeBaseOpenAICompatibleParameters
Public Sub New (uri As Uri, modelName As AzureOpenAIModelName)

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.

Exceptions

uri is null.

Applies to