Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method OpenAI.prototype.uploadFile
import { OpenAI } from "https://deno.land/x/commit_genius@v0.5.1/deps.ts";

Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.

https://platform.openai.com/docs/api-reference/files/upload

Parameters

file: string
purpose: string

Returns

Promise<File>