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

x/openai/resources/beta/threads/messages/mod.ts>Files

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace Files
import { Files } from "https://deno.land/x/openai@v4.24.4/resources/beta/threads/messages/mod.ts";
class Files
extends APIResource
import { Files } from "https://deno.land/x/openai@v4.24.4/resources/beta/threads/messages/mod.ts";

Methods

list(
threadId: string,
messageId: string,
options?: Core.RequestOptions,
): Core.PagePromise<MessageFilesPage, MessageFile>

Returns a list of message files.

list(
threadId: string,
messageId: string,
options?: Core.RequestOptions,
): Core.PagePromise<MessageFilesPage, MessageFile>
retrieve(
threadId: string,
messageId: string,
fileId: string,
options?: Core.RequestOptions,
): Core.APIPromise<MessageFile>

Retrieves a message file.