Saltar para o conteúdo principal
Versão: 20 R9 BETA

OpenAIChatCompletionParameters

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

Inherits

Propriedades

PropriedadeTipoValor padrãoDescrição
modelText"gpt-4o-mini"ID of the model to use.
streamParâmetrosFalseWhether to stream back partial progress. Se definido, os tokens serão enviados como somente dados. Fórmula de retorno de chamada necessária.
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