OpenAIExtensions.AddOpenAI(IDistributedApplicationBuilder, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an OpenAI parent resource that can host multiple models.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.OpenAI.OpenAIResource> AddOpenAI(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddOpenAI : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.OpenAI.OpenAIResource>
<Extension()>
Public Function AddOpenAI (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of OpenAIResource)
Parameters
- name
- String
The name of the OpenAI resource.
Returns
The OpenAI resource builder.