OpenAIChatCompletionsMessagesAPI
The OpenAIChatCompletionsMessagesAPI
class is designed to interact with the OpenAI API for managing messages in chat completions.
関数
リスト()
list(completionID : Text; parameters : OpenAIChatCompletionsMessagesParameters) : Variant
引数 | 型 | 説明 |
---|---|---|
completionID | Text | The ID of the chat completion to retrieve messages for. |
引数 | OpenAIChatCompletionsMessagesParameters | Parameters for filtering and customizing the response. |
戻り値 | Variant | The 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://platform.openai.com/docs/api-reference/chat/getMessages