Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: answer a recipe check the backend cannot read the seed for (#11363)
Daniel Han647a588a707d
diff --git a/studio/backend/routes/data_recipe/validate.py b/studio/backend/routes/data_recipe/validate.pyindex f57c0441475..f9ba9b5aea0 100644--- a/studio/backend/routes/data_recipe/validate.py+++ b/studio/backend/routes/data_recipe/validate.py@@ -200,7 +200,12 @@ def validate(payload: RecipePayload, via_api_key: ViaApiKey = False) -> Validateexc_info = True,)detail = safe_curated_detail(exc, fallback = "Validation failed.")- parsed_errors = _collect_validation_errors(recipe)+ try:+ parsed_errors = _collect_validation_errors(recipe)+ except Exception:+ # It re-reads the seed, so an unreadable one raises here too; escaping turns an+ # answerable "this recipe is wrong" into a 500.+ parsed_errors = []return ValidateResponse(valid = False,errors = parsed_errors or [ValidateError(message = detail)],diff --git a/studio/backend/tests/test_data_recipe_seed.py b/studio/backend/tests/test_data_recipe_seed.pyindex 94680698505..74d5f701e4c 100644--- a/studio/backend/tests/test_data_recipe_seed.py+++ b/studio/backend/tests/test_data_recipe_seed.py@@ -1583,3 +1583,36 @@ def test_validate_resolves_the_hf_seed_endpoint_like_jobs(monkeypatch):assert response.valid is Trueassert seen["seed_config"]["source"]["endpoint"] == "http://127.0.0.1:9700"+++def test_validate_answers_when_the_error_collector_cannot_read_the_seed(monkeypatch):+ pytest.importorskip("fastapi")+ backend_root = Path(__file__).resolve().parent.parent+ monkeypatch.syspath_prepend(str(backend_root))++ from models.data_recipe import RecipePayload+ from routes.data_recipe import validate as validate_module++ def unreadable_seed(recipe):+ raise OSError("repository not found")++ monkeypatch.setattr(validate_module, "validate_recipe", unreadable_seed)+ monkeypatch.setattr(validate_module, "_collect_validation_errors", unreadable_seed)++ response = validate_module.validate(+ RecipePayload(+ recipe = {+ "seed_config": {+ "source": {+ "seed_type": "hf",+ "path": "datasets/nope/nope/**/*.parquet",+ "endpoint": None,+ }+ },+ "columns": [{"column_type": "expression", "name": "x", "expr": "hello"}],+ }+ )+ )++ assert response.valid is False+ assert "repository not found" in (response.raw_detail or "")