OpenAIModelResource
Class net10.0
Represents an OpenAI Model resource.
namespace Aspire.Hosting.OpenAI;
public class OpenAIModelResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.OpenAI.OpenAIResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<OpenAIResource>IValueProviderIValueWithReferences
Constructors1
Section titled ConstructorsOpenAIModelResource(string, string, OpenAIResource) Initializes a new instance of the
OpenAIModelResource class. Properties3
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the OpenAI Model resource.
Modelget; setstring Gets or sets the model name, e.g., "gpt-4o-mini".
Parentget Parent OpenAI account resource from which settings (like API key) can be shared.