[TokenRhythm /v1/messages] temperature/top_p + thinking=on returns 400 — DeepSeek official API tolerates it; how do you plan to handle it?

Author: luotianyiismywifeCreated Aug 26, 2026Updated Sep 20, 2026
Labelshas-linked-pr

Summary

TokenRhythm's /v1/messages (Anthropic-format endpoint) returns 400 "请求参数组合无效" when a request combines thinking: {type: "enabled"} with temperature / top_p. The same combination is tolerated by the DeepSeek official API (the model family behind this), and also by TokenRhythm's own /chat/completions (OpenAI-format) endpoint. We'd like to know how the platform plans to handle this inconsistency.

Evidence

1. DeepSeek official API (OpenAI format) — explicitly tolerates

Official docs — Thinking Mode:

"Thinking mode does not support the temperature, top_p, presence_penalty, or frequency_penalty parameters. Please note that, for compatibility with existing software, setting these parameters will not trigger an error but will also have no effect."

So DeepSeek's own API explicitly chooses compatibility-over-strictness: sending temperature with thinking enabled does not error (it is silently ignored).

2. DeepSeek official API (Anthropic-format compatibility layer) — fields marked as fully supported

Official docs — Using the Anthropic API, Simple Fields compatibility table:

Field Support Status
temperature Fully Supported (range [0.0 ~ 2.0])
top_p Fully Supported
thinking Supported (budget_tokens is ignored)
top_k Ignored

The table does not state an explicit "no error when combined" statement (unlike the OpenAI-format page), but marks temperature and thinking as both supported — indicating the model backend itself does not treat them as mutually exclusive.

3. Anthropic official protocol — the strictness source

Anthropic official docs — Thinking, Limits and feature compatibility:

"On older models, the restriction applies only while thinking is on: temperature and top_k are incompatible with thinking, and top_p is allowed at values between 0.95 and 1."

We understand TokenRhythm's 400 comes from faithfully enforcing the Anthropic protocol here. The question is whether that strictness is intended for this platform, given the model vendor's own API is more lenient.

4. Inconsistency within TokenRhythm itself

Endpoint thinking=enabled + temperature Verified
/chat/completions (OpenAI format) 200, accepted (temperature silently ignored) live test
/v1/messages (Anthropic format) 400 "请求参数组合无效" live test

Same platform, same model family — two different behaviors.

Question to the platform

How do you plan to treat temperature/top_p + thinking: enabled on the Anthropic-format endpoint?

  • Option A: Align with DeepSeek's official behavior — accept and silently ignore temperature/top_p when thinking is on (compatibility-over-strictness). This would match both the model vendor's API and your own OpenAI-format endpoint.
  • Option B: Keep enforcing the Anthropic standard — but then please (a) return a clearer error message (e.g. Anthropic's own wording: "temperature is not supported with extended thinking"), and (b) document this constraint in the API docs, so clients don't have to discover it by trial-and-error.
  • Option C: Something else.

References