Hierarchy

  • APIResource
    • Messages

Constructors

Methods

Constructors

Methods

  • Get the messages in a stored chat completion. Only Chat Completions that have been created with the store parameter set to true will be returned.

    Parameters

    Returns PagePromise<ChatCompletionStoreMessagesPage, ChatCompletionStoreMessage>

    // Automatically fetches more pages as needed.
    for await (const chatCompletionStoreMessage of client.chat.completions.messages.list(
    'completion_id',
    )) {
    // ...
    }