OpenAISettings
Class sealed net10.0
The settings relevant to accessing OpenAI.
namespace Aspire.OpenAI;
public sealed class OpenAISettings{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesDisableMetricsget; setbool Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.
DisableTracingget; setbool Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
EnableSensitiveTelemetryDataget; setbool Gets or sets a boolean value indicating whether potentially sensitive information should be included in telemetry.
Endpointget; setUri? 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. Keyget; setstring? Gets or sets a the API key to used to authenticate with the service.