Skip to main content
Module

x/openai/resources/beta/threads/messages/files.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.21.0/resources/beta/threads/messages/files.ts";
class Files
extends APIResource
import { Files } from "https://deno.land/x/openai@v4.21.0/resources/beta/threads/messages/files.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.