Skip to main content
Go to Latest
method OpenAI.prototype.uploadFile
import { OpenAI } from "https://deno.land/x/commit_genius@v0.4.0/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>