Skip to main content
Module

x/openai/mod.ts>OpenAI#uploadFile

Unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
method OpenAI.prototype.uploadFile
import { OpenAI } from "https://deno.land/x/openai@1.4.3/mod.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

purpose: string