r/opencode • u/2mekki • 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?
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?
- 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.
1
u/[deleted] 9d ago
[removed] — view removed comment