Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/files.ts>FileCreateParams

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

Properties

file: Core.Uploadable

The File object (not file name) to be uploaded.

purpose:
| "assistants"
| "batch"
| "fine-tune"
| "vision"

The intended purpose of the uploaded file.

Use "assistants" for Assistants and Message files, "vision" for Assistants image file inputs, "batch" for Batch API, and "fine-tune" for Fine-tuning.