From ea847f28903fdfccec844f4be0522d7f9bffffd3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 13 May 2026 10:04:50 -0300 Subject: [PATCH] fix: make thinking on/off toggle work for deepseek provider * Ref: https://github.com/charmbracelet/catwalk/pull/271 * Docs: https://api-docs.deepseek.com/guides/thinking_mode --- internal/agent/coordinator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 08e3ad7d0819742cd894dc61e730df19412fa199..5db3309bc8e02bdca3a94070030b7a1c2d8ab301 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -364,7 +364,7 @@ func getProviderOptions(model Model, providerCfg config.ProviderConfig) fantasy. extraBody["chat_template_kwargs"] = map[string]any{ "thinking": model.ModelCfg.Think, } - case string(catwalk.InferenceProviderZAI): + case string(catwalk.InferenceProviderZAI), string(catwalk.InferenceProviderDeepSeek): if model.ModelCfg.Think { extraBody["thinking"] = map[string]any{ "type": "enabled",