Saltar para o conteúdo principal
Versão: Próximo

OpenAIChatCompletionParameters

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

Inherits

Propriedades

PropriedadeTipoDefault ValueDescrição
modelText"gpt-4o-mini"ID of the model to use.
streamParâmetrosFalseWhether to stream back partial progress. If set, tokens will be sent as data-only. Callback formula required.
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.
storeParâmetrosFalseWhether or not to store the output of this chat completion request.

Veja também