Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
知识库 → 创建训练订单
AI-generatedSummary
Creates a FastGPT knowledge base training order (billing usage record) by POSTing to /support/wallet/usage/createTrainingUsage. The response carries a billId that you can pass to the "推送数据到训练队列" operation so that training data is aggregated under a single bill.
Inputs
- trainingDatasetId (required) — 知识库ID. The ID of the knowledge base (dataset) the training order belongs to. Sent in the request body as datasetId.
- trainingName — 订单名称. Optional custom name for the order, e.g. 文档训练-fastgpt.docx. Sent in the request body as name.
- requestOptions — Node-level request settings: batching (items per batch, default 50, and interval, default 1000 ms), ignore SSL certificate issues, an HTTP proxy, and a timeout (default 10000 ms).
Output shape
The parsed JSON response from the FastGPT API. It contains the new training order's billId (per the operation description).
The node's error handler throws a NodeApiError if the HTTP status is 4xx/5xx or the response body's code is not 200. The error message comes from the response message. The exact response field layout is not defined in the source.
Examples
Example 1: Group a batch of data pushes into one bill before training a knowledge base.
Resource 知识库, operation 创建训练订单, 知识库ID set to the target dataset ID, 订单名称 set to e.g. 文档训练-fastgpt.docx. Pass the returned billId to 推送数据到训练队列 as 订单ID.