portkey-ai
Version:
Node client library for the Portkey API
15 lines (14 loc) • 865 B
TypeScript
import { BatchCreateParams, BatchListParams } from 'openai/resources/batches';
import { ApiClientInterface } from '../_types/generalTypes';
import { ApiResource } from '../apiResource';
import { RequestOptions } from '../baseClient';
export declare class Batches extends ApiResource {
create(_body: BatchCreateBody, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>;
retrieve(batchId: string, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>;
list(_query?: BatchListParams, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>;
cancel(batchId: string, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>;
output(batchId: string, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>;
}
export interface BatchCreateBody extends BatchCreateParams {
[key: string]: any;
}