Skip to content

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.

Tests: read the training API job bodies fixture as UTF-8 (#16025)

Daniel Han61176d5b9bb5
diff --git a/studio/backend/tests/test_training_api_snippet_contract.py b/studio/backend/tests/test_training_api_snippet_contract.py
index 6065159d43b..d61782d468b 100644
--- a/studio/backend/tests/test_training_api_snippet_contract.py
+++ b/studio/backend/tests/test_training_api_snippet_contract.py
@@ -16,7 +16,9 @@ from models.training import TrainingStartRequest
from routes import openai_fine_tuning
BODIES = json.loads(
- (Path(__file__).parent / "fixtures" / "training_api_job_bodies.json").read_text()
+ (Path(__file__).parent / "fixtures" / "training_api_job_bodies.json").read_text(
+ encoding = "utf-8"
+ )
)
FILE_ID = "file-0123456789abcdef0123456789abcdef"
UPLOADED = Path(f"/uploads/{FILE_ID}.jsonl")