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

OpenAIParameters

The OpenAIParameters class is designed to handle execution and request parameters for interacting with the OpenAI API.

Propriedades

Properties of Asynchronous Programming

PropriedadeTipoDescrição
formula ou onTerminateFunctionA function to be called asynchronously when finished. Ensure that the current process does not terminate.
onResponseFunctionA function to be called asynchronously when the request finishes successfully. Ensure that the current process does not terminate.
onErrorFunctionA function to be called asynchronously when the request finishes with errors. Ensure that the current process does not terminate.
throwParâmetrosIf true, throws an error if one occurs. Only if no formula callback defined.

Veja documentação sobre código assíncrono

Propriedades de rede

PropriedadeTipoDescrição
timeoutRealOverrides the client-level default timeout for the request, in seconds. O padrão é 0.
httpAgentHTTPAgentOverrides the client-level default HTTP agent for the request.
maxRetriesIntegerThe maximum number of retries for the request. (Only if code not asynchrone ie. no function provided)
extraHeadersObjectExtra headers to send with the request.

Propriedades OpenAPI

PropriedadeTipoDescrição
userTextA unique identifier representing the end-user, which helps OpenAI monitor and detect abuse.

Classes herdadas

Several classes inherit from OpenAIParameters to extend its functionality for specific use cases. Below are some of the classes that extend OpenAIParameters: