@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
21 lines • 633 B
TypeScript
import type { CredentialsParams } from "../../types/public";
import type { ApiJob } from "../../types/api/api-jobs";
/**
* Duplicate a job (re-run with the same spec).
*/
export declare function duplicateJob(params: {
/**
* The namespace (username or organization name)
*/
namespace: string;
/**
* The job ID to duplicate
*/
jobId: string;
hubUrl?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & CredentialsParams): Promise<ApiJob>;
//# sourceMappingURL=duplicate-job.d.ts.map