Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 4 KB

uploadfileout.md

File metadata and controls

32 lines (27 loc) · 4 KB

UploadFileOut

Example Usage

import { UploadFileOut } from "@mistralai/mistralai/models/components";

let value: UploadFileOut = {
  id: "497f6eca-6276-4993-bfeb-53cbbbba6f09",
  object: "file",
  sizeBytes: 13000,
  createdAt: 1716963433,
  filename: "files_upload.jsonl",
  purpose: "fine-tune",
  sampleType: "batch_result",
  source: "upload",
};

Fields

Field Type Required Description Example
id string ✔️ The unique identifier of the file. 497f6eca-6276-4993-bfeb-53cbbbba6f09
object string ✔️ The object type, which is always "file". file
sizeBytes number ✔️ The size of the file, in bytes. 13000
createdAt number ✔️ The UNIX timestamp (in seconds) of the event. 1716963433
filename string ✔️ The name of the uploaded file. files_upload.jsonl
purpose components.FilePurpose ✔️ N/A
sampleType components.SampleType ✔️ N/A
numLines number N/A
source components.Source ✔️ N/A