Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/uploads/mod.ts>UploadCreateParams

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface UploadCreateParams
import { type UploadCreateParams } from "https://deno.land/x/openai@v4.69.0/resources/uploads/mod.ts";

Properties

bytes: number

The number of bytes in the file you are uploading.

filename: string

The name of the file to upload.

mime_type: string

The MIME type of the file.

This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.

purpose: FilesAPI.FilePurpose

The intended purpose of the uploaded file.

See the documentation on File purposes.