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

x/openai/resources/mod.ts>Uploads#complete

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Uploads.prototype.complete
import { Uploads } from "https://deno.land/x/openai@v4.53.2/resources/mod.ts";

Completes the Upload.

Within the returned Upload object, there is a nested File object that is ready to use in the rest of the platform.

You can specify the order of the Parts by passing in an ordered list of the Part IDs.

The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.

Parameters

uploadId: string
optional
options: Core.RequestOptions

Returns

Core.APIPromise<Upload>