你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureOpenAIClientOptions Class

Definition

Defines the scenario-independent, client-level options for the Azure-specific OpenAI client.

public class AzureOpenAIClientOptions : System.ClientModel.Primitives.ClientPipelineOptions
type AzureOpenAIClientOptions = class
    inherit ClientPipelineOptions
Public Class AzureOpenAIClientOptions
Inherits ClientPipelineOptions
Inheritance
AzureOpenAIClientOptions

Constructors

AzureOpenAIClientOptions()

Initializes a new instance of AzureOpenAIClientOptions.

AzureOpenAIClientOptions(AzureOpenAIClientOptions+ServiceVersion)

Initializes a new instance of AzureOpenAIClientOptions.

Properties

Audience

The authorization audience to use when authenticating with Azure authentication tokens

ClientLoggingOptions

The options to be used to configure logging within the ClientPipeline.

(Inherited from ClientPipelineOptions)
MessageLoggingPolicy

Gets or sets the PipelinePolicy to be used by the ClientPipeline for logging.

(Inherited from ClientPipelineOptions)
NetworkTimeout

The timeout applied to an individual network operation.

(Inherited from ClientPipelineOptions)
RetryPolicy

Gets or sets the PipelinePolicy to be used by the ClientPipeline for handling retry logic.

(Inherited from ClientPipelineOptions)
Transport

Gets or sets the PipelineTransport to be used by the ClientPipeline for sending and receiving HTTP messages.

(Inherited from ClientPipelineOptions)
UserAgentApplicationId

An optional application ID to use as part of the request User-Agent header.

Methods

AddPolicy(PipelinePolicy, PipelinePosition)

Adds the provided PipelinePolicy to the default ClientPipeline.

(Inherited from ClientPipelineOptions)
AssertNotFrozen()

Assert that Freeze() has not been called on this ClientPipelineOptions instance.

(Inherited from ClientPipelineOptions)
Freeze()

Freeze this instance of ClientPipelineOptions. After this method has been called, any attempt to set properties on the instance or call methods that would change its state will throw InvalidOperationException.

(Inherited from ClientPipelineOptions)

Applies to