[PR #12145] feat(provider): add reasoning variants for Together AI, OpenRouter, and OpenAI-compatible providers #14087

Open
opened 2026-02-16 18:18:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12145

State: open
Merged: No


What does this PR do?

This PR adds support for setting the reasoning effort / toggling reasoning on models that support reasoning for several providers (i.e. Together.AI, OpenAI-compatible providers and OpenRouter). The changes are quite straightfoward for OpenAI-compatible providers and Together.AI, but OpenRouter required a switch to account for each different model family.

Synthetic.new (OpenAI-compatible) does not seem to support disabling reasoning and returns an error when passing reasoningEffort: "none". Synthetic.new uses vLLM as its backend, and the vLLM documentation apparently supports disabling reasoning (via enable_thinking: false), but Synthetic.new does not expose that case in their OpenAI API endpoint. The other OpenAI-compatible providers I tried (Opencode Zen, Fireworks AI) worked fine.

How did you verify your code works?

I ran bun run dev and used Kimi K2.5 on Together.AI, Synthetic.new, Opencode Zen and Openrouter, toggling reasoning.

Fixes #12155

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12145 **State:** open **Merged:** No --- ### What does this PR do? This PR adds support for setting the reasoning effort / toggling reasoning on models that support reasoning for several providers (i.e. Together.AI, OpenAI-compatible providers and OpenRouter). The changes are quite straightfoward for OpenAI-compatible providers and Together.AI, but OpenRouter required a switch to account for each different model family. Synthetic.new (OpenAI-compatible) does not seem to support disabling reasoning and returns an error when passing `reasoningEffort: "none"`. Synthetic.new uses vLLM as its backend, and the vLLM documentation apparently supports disabling reasoning (via `enable_thinking: false`), but Synthetic.new does not expose that case in their OpenAI API endpoint. The other OpenAI-compatible providers I tried (Opencode Zen, Fireworks AI) worked fine. ### How did you verify your code works? I ran `bun run dev` and used Kimi K2.5 on Together.AI, Synthetic.new, Opencode Zen and Openrouter, toggling reasoning. Fixes #12155
yindo added the pull-request label 2026-02-16 18:18:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14087