UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

24 lines • 967 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { multipartFormRequestOptions } from "../../../internal/uploads.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseAssets = /* @__PURE__ */ (() => { class BaseAssets extends APIResource { /** * Uploads training data assets for a Workers AI fine-tuning job. */ create(finetuneID, params, options) { const { account_id, ...body } = params; return this._client.post(path `/accounts/${account_id}/ai/finetunes/${finetuneID}/finetune-assets`, multipartFormRequestOptions({ body, ...options }, this._client)); } } BaseAssets._key = Object.freeze([ 'ai', 'finetunes', 'assets', ]); return BaseAssets; })(); export class Assets extends BaseAssets { } //# sourceMappingURL=assets.mjs.map