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

x/openai/resources/files.ts>FilePurpose

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

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.

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