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

x/openai/resources/mod.ts>FileCreateParams

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

Properties

file: Uploadable

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

purpose: "fine-tune" | "assistants"

The intended purpose of the uploaded file.

Use "fine-tune" for Fine-tuning and "assistants" for Assistants and Messages. This allows us to validate the format of the uploaded file is correct for fine-tuning.