Merge branch 'pr-4275'

This commit is contained in:
Test 2026-03-13 09:40:10 +00:00
commit 4b057bc84e
2 changed files with 11 additions and 0 deletions

View file

@ -118,6 +118,7 @@ def _build_stream_load_kwargs(
"path": dataset_name,
"split": split,
"streaming": True,
"trust_remote_code": False,
}
if data_file:
kwargs["data_files"] = [data_file]

View file

@ -0,0 +1,10 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
from pathlib import Path
def test_seed_inspect_load_kwargs_disables_remote_code_execution():
seed_route = Path("studio/backend/routes/data_recipe/seed.py").read_text()
assert '"trust_remote_code": False' in seed_route