Skip to content
DocsTry Aspire
DocsTry

OpenAIResource Properties

ClassProperties4 members
Represents a logical OpenAI account/configuration that can host one or more OpenAIModelResource children.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
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; }
KeySection titled KeyParameterResource
Gets or sets the API key for accessing OpenAI.
public ParameterResource Key { get; }
UriExpressionSection titled UriExpressionReferenceExpression
Gets the endpoint URI expression for the OpenAI account.
public ReferenceExpression UriExpression { get; }
Format matches the configured endpoint, for example https://api.openai.com/v1.