OpenAIResource
Class sealed net10.0
Represents a logical OpenAI account/configuration that can host one or more
OpenAIModelResource children. namespace Aspire.Hosting.OpenAI;
public sealed class OpenAIResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferences
5 members
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the base connection string for the OpenAI account.
Endpointgetstring Gets or sets the service endpoint base URI for OpenAI-compatible services. Defaults to https://api.openai.com/v1.
KeygetParameterResource Gets or sets the API key for accessing OpenAI.
UriExpressiongetReferenceExpression Gets the endpoint URI expression for the OpenAI account.