Skip to content
Docs Try Aspire

OpenAIResource Properties

Class Properties 4 members
Represents a logical OpenAI account/configuration that can host one or more OpenAIModelResource children.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
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; }
Key Section titled Key ParameterResource
Gets or sets the API key for accessing OpenAI.
public ParameterResource Key { get; }
UriExpression Section titled UriExpression ReferenceExpression
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.