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: keep DeepSeek chats answering after a tool call (#17556)
Nilay31482f3907b8
diff --git a/studio/backend/core/inference/external_tool_transport.py b/studio/backend/core/inference/external_tool_transport.pyindex c608befb703..b75ed344b1d 100644--- a/studio/backend/core/inference/external_tool_transport.py+++ b/studio/backend/core/inference/external_tool_transport.py@@ -65,6 +65,7 @@ class OAICompatTransport:"llama_cpp","vllm","minimax",+ "deepseek",) or _is_kimi_k3(client.provider_type, model)def stream(diff --git a/studio/backend/tests/test_external_preserve_thinking.py b/studio/backend/tests/test_external_preserve_thinking.pyindex 1dc7a72830e..e725990fbc1 100644--- a/studio/backend/tests/test_external_preserve_thinking.py+++ b/studio/backend/tests/test_external_preserve_thinking.py@@ -80,7 +80,7 @@ def _sse(delta = None, finish = None) -> bytes:return f"data: {json.dumps({'choices': [choice]})}\n\n".encode()[email protected]("provider", ["llama_cpp", "vllm", "custom"])[email protected]("provider", ["llama_cpp", "vllm", "deepseek", "custom"])@pytest.mark.parametrize("preserve", [True, False, None])def test_tool_round_thinking_reaches_the_next_request(monkeypatch, provider, preserve):call = {diff --git a/studio/frontend/src/features/chat/provider-capabilities.ts b/studio/frontend/src/features/chat/provider-capabilities.tsindex 24fbc0e59bd..afb9a39011f 100644--- a/studio/frontend/src/features/chat/provider-capabilities.ts+++ b/studio/frontend/src/features/chat/provider-capabilities.ts@@ -1382,6 +1382,7 @@ export function providerModelReplaysReasoning(): boolean {return (providerType === "minimax" ||+ providerType === "deepseek" ||(providerType === "kimi" && isKimiK3(modelId)));}diff --git a/studio/frontend/tests/external-preserve-thinking.test.ts b/studio/frontend/tests/external-preserve-thinking.test.tsindex 9ce41a350cc..1f0806de570 100644--- a/studio/frontend/tests/external-preserve-thinking.test.ts+++ b/studio/frontend/tests/external-preserve-thinking.test.ts@@ -79,3 +79,12 @@ test("minimax replays reasoning whatever the preserve toggle says", () => {);}});++test("deepseek replays reasoning whatever the preserve toggle says", () => {+ for (const enabled of [true, false]) {+ assert.deepEqual(+ evaluate(providerSupportsPreserveThinking, {providerType: "deepseek"}, {preserveThinking: enabled}, true, "deepseek-flash"),+ {replay: true, fields: {}},+ );+ }+});