felix
datasets

Import From Github

Download a file from GitHub and create a Pioneer dataset.

Args: request: Repo, file path, and optional branch, dataset name, GitHub token, and dataset purpose (type: 'training' (default), 'evaluation', or 'benchmark' -- 'benchmark' is rejected, mirroring pull_dataset_from_hub). http_request: Raw request, read only to identify sandbox run keys. auth: Authenticated user context.

Returns: DatasetResponse of the created dataset.

Raises: HTTPException: 400 on parse errors, 403 on a run-key token or type='benchmark', 502 on download failures.

post/felix/datasets/import-from-github

Request body

repostring required

GitHub repository, e.g. 'owner/repo' or a full URL

file_pathstring required

Path to the data file inside the repository

branchstring nullable

Branch or ref to import from. Defaults to the default branch

dataset_namestring nullable

Name for the new Pioneer dataset. Defaults to a slugified file base name

github_tokenstring nullable

GitHub personal access token for private repos or higher rate limits. Sandbox run keys must omit this field and can only import public repos.

type'training' | 'evaluation' | 'benchmark' nullable

Dataset purpose: 'training' (trainable), 'evaluation' (not trainable), 'benchmark' (system-managed, evaluation-only; cannot be created via this endpoint).

Response

Successful Response

{"stackTrail":"paths:/felix/datasets/import-from-github:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes