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

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

Methods

create(
assistantId: string,
options?: Core.RequestOptions,
): Core.APIPromise<AssistantFile>

Create an assistant file by attaching a File to an assistant.

del(
assistantId: string,
fileId: string,
options?: Core.RequestOptions,
): Core.APIPromise<FileDeleteResponse>

Delete an assistant file.

list(
assistantId: string,
options?: Core.RequestOptions,
): Core.PagePromise<AssistantFilesPage, AssistantFile>

Returns a list of assistant files.

list(assistantId: string, options?: Core.RequestOptions): Core.PagePromise<AssistantFilesPage, AssistantFile>
retrieve(
assistantId: string,
fileId: string,
options?: Core.RequestOptions,
): Core.APIPromise<AssistantFile>

Retrieves an AssistantFile.