OpenAIResource Properties
ClassProperties5 members
Represents a logical OpenAI account/configuration that can host one or more
OpenAIModelResource children. Gets the base connection string for the OpenAI account.
public ReferenceExpression ConnectionStringExpression { get; } Gets or sets the service endpoint base URI for OpenAI-compatible services. Defaults to https://api.openai.com/v1.
public string Endpoint { get; } Gets or sets the API key for accessing OpenAI.
public ParameterResource Key { get; } Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }Remarks
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use
ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance. Gets the endpoint URI expression for the OpenAI account.
public ReferenceExpression UriExpression { get; }Remarks
Format matches the configured endpoint, for example
https://api.openai.com/v1 .