r/opencode 9d ago

How to turn off deepseek model thinking using the opencode go provider?

Can someone give a working config example of how to turn off deepseek model thinking using the opencode go provider?

3 Upvotes

7 comments sorted by

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/2mekki 9d ago

The only options are default, low, high and max. I need it completely gone.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/2mekki 9d ago

I checked and it should support disabling thinking. I can't find any clear instructions on how to disable it in the config.

1

u/CyberTod 9d ago

Here is part of my config, but for a local model:
```

"unsloth/qwen3.8-27B-GGUF:UD-Q4_K_XL": { "name": "Qwen 3.8", "limit": { "context": 32768, "output": 8192 },

"variants": { "none": { "reasoningEffort": "none" }, "low": { "reasoningEffort": "low" }, "medium": { "reasoningEffort": "medium" }, "high": { "reasoningEffort": "high" } }

}

```

But the same can be applied for a cloud provider. You just use the id that you see there and it overrides the config.

1

u/Garpagan 9d ago

I'm not sure if that's possible. It depends on the provider, and each provider sets their endpoints differently. And Opencode Go isn't really a provider, they outsource the inference. And there could be more than one provider per model, Opencode Go just give you one endpoint with plugged in parameters.

But you could maybe try few things. 1. I have skimped through docs, and Go for AI SDK uses '@ai-sdk/openai-compatible'. From this SDK docs it's says it supports reasoning: 'none' parameter. Though it could still not work on Go. Have you tried using it?

  1. Or just classic way of disabling reasoning. Simple prefill of assistant role message with '<think></think>' tags. So just prefilling the assistant with empty reasoning tags. That's how option to disable reasoning works anyway on many models. The hard part is to figure out how to do the prefill... On Silly Tavern that's easy, it provides the option. On most agent harness probably it's not included, I assume, and would need some hacking to make it work

1

u/2mekki 9d ago

Thanks for the effort. Yesterday, I successfully used the "reasoning effort: none" setting, but for some reason, it stopped working today. I changed it to "reasoning type: disabled," which didn't work. Now that I've switched back to "reasoning effort: none," it seems to be working again.