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

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

Parameters

assistantID: string

The ID of the assistant for which to create a File.

fileID: string

A File ID (with purpose="assistants") that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files.