Saltar para o conteúdo principal
Versão: 21 R3 BETA

OpenAIChatCompletionsMessagesAPI

The OpenAIChatCompletionsMessagesAPI class is designed to interact with the OpenAI API for managing messages in chat completions.

Funções

lista()

list(completionID : Text; parameters : OpenAIChatCompletionsMessagesParameters) : Variant

ParâmetroTipoDescrição
completionIDTextThe ID of the chat completion to retrieve messages for.
parâmetrosOpenAIChatCompletionsMessagesParametersParameters for filtering and customizing the response.
ResultadoDiferente deThe retrieved messages associated with the chat completion.

The list() function retrieves messages associated with a specific chat completion ID. It throws an error if the completionID is empty. If the parameters argument is not an instance of OpenAIChatCompletionsMessagesParameters, it will create a new instance using the provided parameters.

https://developers.openai.com/api/reference/resources/chat/subresources/completions/subresources/messages/methods/list