AzureOpenAISettings Properties
ClassProperties7 members
Configures an Azure OpenAI account client and its Microsoft.Extensions.AI telemetry.
Gets or sets the Microsoft Entra credential. Uses managed identity in Azure and a development credential locally by default.
public TokenCredential? Credential { get; set; } Gets or sets whether Microsoft.Extensions.AI metrics are disabled. The default is
false. public bool DisableMetrics { get; set; } Gets or sets whether tracing is disabled. The default is
false. public bool DisableTracing { get; set; } Gets or sets whether Microsoft.Extensions.AI telemetry includes sensitive message content. Defaults to
false unless OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT is true. public bool EnableSensitiveTelemetryData { get; set; } Gets or sets the HTTPS Azure OpenAI account endpoint or its
/openai/v1/ endpoint. public Uri? Endpoint { get; set; } Gets or sets the API key. When absent, the client uses Microsoft Entra authentication.
public string? Key { get; set; } Gets or sets the Microsoft Entra token scope. Defaults to
https://ai.azure.com/.default . public string TokenScope { get; set; }