b92f75fd3b61
Get Model Datasets
Return training + evaluation datasets for a project or base model.
Exactly one of project_id or base_model must be provided.
Args: project_id: Scope to datasets directly attached to this project, or the sentinel "default" for unallocated datasets. base_model: Scope to datasets used by training jobs and evaluations against this base model id. auth: Authentication result carrying the user id and team scope.
Returns: ModelDatasetsResponse with training and evaluation dataset rows. Evaluation rows include their latest completed evaluation when available.
Raises: HTTPException: 400 when the scope parameters are not exactly one of project_id / base_model, or the service rejects the input; 503 when the datasets read fails, with the cause logged server-side rather than returned to the caller.
Query parameters
Project UUID. Returns datasets attached to this project. Pass the literal value 'default' to return datasets whose project_id is null (the unallocated-resources bucket).
Project UUID. Returns datasets attached to this project. Pass the literal value 'default' to return datasets whose project_id is null (the unallocated-resources bucket).
Base catalog model id (e.g. 'meta-llama/Llama-3-8B').
Base catalog model id (e.g. 'meta-llama/Llama-3-8B').
Response
Successful Response