Skip to main content
Module

x/openai/resources/beta/assistants/files.ts>Files#create

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Files.prototype.create
import { Files } from "https://deno.land/x/openai@v4.21.0/resources/beta/assistants/files.ts";

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

Parameters

assistantId: string
optional
options: Core.RequestOptions

Returns

Core.APIPromise<AssistantFile>