The version for the api. If 'true' is provided the global OpenAI version will be used.
OptionaldeploymentOptional deployment name for Azure OpenAI.
OptionaldeveloperProperty to configure the developer message of the model. Setting this property to 'user', 'system', or 'developer' will use that string as the role for the system message. Setting it to 'mergeWithFollowingUserMessage' will prefix the following user message with the system message or convert the system message to user if the following message is not a user message. 'skip' will remove the system message altogether. Defaults to 'developer'.
Indicate whether the streaming API shall be used.
The identifier of the model which will be shown in the UI.
Maximum number of retry attempts when a request fails. Default is 3.
The model ID as used by the OpenAI API.
Flag to configure whether the OpenAPI model supports structured output. Default is true.
OptionalurlThe OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.
OptionaluseFlag to configure whether to use the newer OpenAI Response API instead of the Chat Completion API.
For official OpenAI models, this defaults to true. For custom providers, users must explicitly enable it.
Default is false for custom models.
The key for the model. If 'true' is provided the global OpenAI API key will be used.