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

x/openai/resources/batches.ts>Batches#cancel

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

Cancels an in-progress batch. The batch will be in status cancelling for up to 10 minutes, before changing to cancelled, where it will have partial results (if any) available in the output file.

Parameters

batchId: string
optional
options: Core.RequestOptions

Returns

Core.APIPromise<Batch>