OpenAIResource.addModel

Method
📦 Aspire.Hosting.OpenAI v17.0.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
namestringThe name of the model resource. This name is used as the connection string name.
modelstringThe model identifier, e.g., "gpt-4o-mini".
OpenAIModelResource

Defined on

This method is defined on the following type: