Saltar al contenido principal
Versión: 20 R9 BETA

OpenAIChatCompletionParameters

The OpenAIChatCompletionParameters class is designed to handle the parameters required for chat completions using the OpenAI API.

Inherits

Propiedades

PropiedadTipoValor por defectoDescripción
modelText"gpt-4o-mini"ID del modelo a utilizar.
streamBooleanFalseWhether to stream back partial progress. If set, tokens will be sent as data-only. Fórmula de retrollamada necesaria.
max_completion_tokensInteger0The maximum number of tokens that can be generated in the completion.
nInteger1How many completions to generate for each prompt.
temperatureReal-1What sampling temperature to use, between 0 and 2. Higher values make the output more random, while lower values make it more focused and deterministic.
storeBooleanFalseWhether or not to store the output of this chat completion request.

Ver también