Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/threads/mod.ts>Messages

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
class Messages
extends APIResource
import { Messages } from "https://deno.land/x/openai@v4.19.0/resources/beta/threads/mod.ts";

Properties

files: FilesAPI.Files

Methods

create(
threadId: string,
options?: Core.RequestOptions,
): Core.APIPromise<ThreadMessage>

Create a message.

list(
threadId: string,
options?: Core.RequestOptions,
): Core.PagePromise<ThreadMessagesPage, ThreadMessage>

Returns a list of messages for a given thread.

list(threadId: string, options?: Core.RequestOptions): Core.PagePromise<ThreadMessagesPage, ThreadMessage>
retrieve(
threadId: string,
messageId: string,
options?: Core.RequestOptions,
): Core.APIPromise<ThreadMessage>

Retrieve a message.

update(
threadId: string,
messageId: string,
options?: Core.RequestOptions,
): Core.APIPromise<ThreadMessage>

Modifies a message.