on main help sign in
fix: make thinking on/off toggle work for deepseek provider
ea847f2Andrey Nering
internal/agent/coordinator.go+1−1
@@ -364,7 +364,7 @@ func getProviderOptions(model Model, providerCfg config.ProviderConfig) fantasy.
364 extraBody["chat_template_kwargs"] = map[string]any{
364 extraBody["chat_template_kwargs"] = map[string]any{
365 "thinking": model.ModelCfg.Think,
365 "thinking": model.ModelCfg.Think,
366 }
366 }
367− case string(catwalk.InferenceProviderZAI):
367+ case string(catwalk.InferenceProviderZAI), string(catwalk.InferenceProviderDeepSeek):
368 if model.ModelCfg.Think {
368 if model.ModelCfg.Think {
369 extraBody["thinking"] = map[string]any{
369 extraBody["thinking"] = map[string]any{
370 "type": "enabled",
370 "type": "enabled",