upload_dataset_text_file
Add a caption text file to a dataset directly from inline text, avoiding the need to host files. Provide dataset ID, a filename matching the media, and the caption body.
Instructions
Add a text file — normally a caption — to a dataset.
Backs ``POST /prod/v1/trainers/datasets/{dataset_id}/upload`` with
inline text, so captions can be written without hosting a file.
Args:
dataset_id: Target dataset.
filename: Must share the base name of the media it captions:
``img_0001.jpg`` → ``img_0001.txt``.
text: Caption body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| filename | Yes | ||
| dataset_id | Yes |