Skip to content
Docs Try Aspire
Docs Try

addOpenAI

Method
📦 Aspire.Hosting.OpenAI v13.3.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addOpenAI(name: string): OpenAIResource;
}

Signature

method addOpenAI builder
Adds an OpenAI resource to the distributed application model.
addOpenAI(name: string): OpenAIResource
name string
OpenAIResource

Applies to

This method applies to the following types: