OpenAIResource.addModel
Method
interface OpenAIResource { // ... omitted for brevity addModel( name: string, model: string): OpenAIModelResource;}Signature
method
addModel builderAdds an OpenAI Model child to the provided OpenAI resource.
addModel( name: string, model: string): OpenAIModelResourceParameters
namestringThe name of the model resource. This name is used as the connection string name.modelstringThe model identifier, e.g., "gpt-4o-mini".Returns
OpenAIModelResource Defined on
This method is defined on the following type: