cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.17 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import { APIPromise } from "../../../core/api-promise.js";
import { type Uploadable } from "../../../core/uploads.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BaseAssets extends APIResource {
static readonly _key: readonly ['ai', 'finetunes', 'assets'];
/**
* Uploads training data assets for a Workers AI fine-tuning job.
*/
create(finetuneID: string, params: AssetCreateParams, options?: RequestOptions): APIPromise<AssetCreateResponse>;
}
export declare class Assets extends BaseAssets {
}
export interface AssetCreateResponse {
success: boolean;
}
export interface AssetCreateParams {
/**
* Path param
*/
account_id: string;
/**
* Body param: File to upload.
*/
file: Uploadable;
/**
* Body param: Name of the file (adapter_config.json or adapter_model.safetensors).
*/
file_name: string;
}
export declare namespace Assets {
export { type AssetCreateResponse as AssetCreateResponse, type AssetCreateParams as AssetCreateParams };
}
//# sourceMappingURL=assets.d.ts.map