OpenAiModel constructor

OpenAiModel(name, apiKey)

Initializes a new instance of OpenAiModel class.

OpenAiModel(name: string, apiKey: string)
ParameterTypeDescription
namestringThe name of the model. For example, gpt-5.2-chat-latest.
apiKeystringThe API key to use the OpenAi API.

OpenAiModel(name)

Initializes a new instance of OpenAiModel class.

OpenAiModel(name: string)
ParameterTypeDescription
namestringThe name of the model. For example, gpt-5.2-chat-latest.

See Also