Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method OpenAI.prototype.retrieveAssistantFile
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Retrieves an AssistantFile.

Parameters

assistantID: string

The ID of the assistant who the file belongs to.

fileID: string

The ID of the file we're getting.

Returns

Promise<AssistantFile>

The assistant file object matching the specified ID.