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
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]d04885477ce5
diff --git a/studio/backend/tests/test_responses_message_attachments.py b/studio/backend/tests/test_responses_message_attachments.pyindex 2dac3b26797..84cf549a713 100644--- a/studio/backend/tests/test_responses_message_attachments.py+++ b/studio/backend/tests/test_responses_message_attachments.py@@ -40,7 +40,12 @@ def _route_client():return TestClient(app, raise_server_exceptions = False)-def _body(part, *, role = "user", stream = False):+def _body(+ part,+ *,+ role = "user",+ stream = False,+):message = {"role": role,"content": [{"type": "input_text", "text": "what does this say?"}, part],@@ -52,14 +57,18 @@ def _body(part, *, role = "user", stream = False):_REFUSED_PARTS = [- ({"type": "input_file", "file_data": "data:application/pdf;base64,AA", "filename": "r.pdf"},- "input_file"),+ (+ {"type": "input_file", "file_data": "data:application/pdf;base64,AA", "filename": "r.pdf"},+ "input_file",+ ),({"type": "input_file", "file_id": "file_abc"}, "input_file"),({"type": "input_file", "file_url": "https://example.com/d.pdf"}, "input_file"),({"type": "input_image", "file_id": "file_abc"}, "file_id"),({"type": "input_image"}, "require an image_url string"),- ({"type": "input_image", "image_url": "https://example.com/a.png", "detail": "medium"},- "auto, low, high, or original"),+ (+ {"type": "input_image", "image_url": "https://example.com/a.png", "detail": "medium"},+ "auto, low, high, or original",+ ),({"type": "input_audio", "input_audio": {"data": "AA", "format": "wav"}}, "input_audio"),({"type": "input_something_new", "value": 1}, "input_something_new"),]diff --git a/studio/backend/tests/test_responses_tool_passthrough.py b/studio/backend/tests/test_responses_tool_passthrough.pyindex 64dc0d00da4..b9544a7d5d2 100644--- a/studio/backend/tests/test_responses_tool_passthrough.py+++ b/studio/backend/tests/test_responses_tool_passthrough.py@@ -1000,9 +1000,7 @@ class TestNormaliseResponsesInputWithTools:def test_refusal_body_is_the_openai_unsupported_parameter_shape(self):# Clients branch on error.code / error.param.payload = ResponsesRequest(- input = [- {"role": "user", "content": [{"type": "input_file", "filename": "r.pdf"}]}- ],+ input = [{"role": "user", "content": [{"type": "input_file", "filename": "r.pdf"}]}],)with pytest.raises(HTTPException) as exc:_normalise_responses_input(payload)@@ -1054,8 +1052,8 @@ def _matrix_id(case):class TestResponsesMessagePartMatrix:"""One expected answer per (part shape, role, position). No server, no GPU."""- @pytest.mark.parametrize("case", _RESPONSES_PART_MATRIX, ids=_matrix_id)- @pytest.mark.parametrize("alone", [True, False], ids=["alone", "with_text"])+ @pytest.mark.parametrize("case", _RESPONSES_PART_MATRIX, ids = _matrix_id)+ @pytest.mark.parametrize("alone", [True, False], ids = ["alone", "with_text"])def test_user_turn(self, case, alone):part, refused, needle = casecontent = [part] if alone else [{"type": "input_text", "text": "hi"}, part]@@ -1068,7 +1066,7 @@ class TestResponsesMessagePartMatrix:else:assert _normalise_responses_input(payload)- @pytest.mark.parametrize("case", _RESPONSES_PART_MATRIX, ids=_matrix_id)+ @pytest.mark.parametrize("case", _RESPONSES_PART_MATRIX, ids = _matrix_id)@pytest.mark.parametrize("role", ["system", "developer", "assistant"])def test_attachments_refused_on_every_role(self, case, role):# These roles flatten to text, so only a text-ish part survives; everything else,