Skip to content
Docs Try Aspire
Docs Try

addModel

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

Signature

method addModel builder
Adds an OpenAI Model child to the provided OpenAI resource.
addModel(
name: string,
model: string): OpenAIModelResource
name string
model string
OpenAIModelResource

Applies to

This method applies to the following types: