Sdílet prostřednictvím


OpenAISettings Class

Definition

The settings relevant to accessing OpenAI.

public sealed class OpenAISettings
type OpenAISettings = class
Public NotInheritable Class OpenAISettings
Inheritance
OpenAISettings

Constructors

OpenAISettings()

Properties

DisableMetrics

Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.

DisableTracing

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

Endpoint

Gets or sets a Uri referencing the OpenAI REST API endpoint. Leave empty to connect to OpenAI, or set it to use a service using an API compatible with OpenAI.

Key

Gets or sets a the API key to used to authenticate with the service.

Applies to