Skip to content
DocsTry Aspire
DocsTry

OpenAIResource.addModel

Method
📦 Aspire.Hosting.OpenAI v13.4.0
interface OpenAIResource {
// ... omitted for brevity
addModel(
name: string,
model: string): OpenAIModelResource;
}

Signature

methodaddModelbuilder
Adds an OpenAI Model child to the provided OpenAI resource.
addModel(
name: string,
model: string): OpenAIModelResource
namestring
modelstring
OpenAIModelResource

Defined on

This method is defined on the following type: