Parameters by Upstream
Some request fields do not mean the same thing everywhere. This page states what the gateway does with each one on the way to each provider - passed through, translated into the provider's own equivalent, or dropped.
This is not a list of every accepted field; each endpoint page documents its own request body. Listed here are the fields where supported is not a yes or no, because the answer changes with the provider your model runs on.
reasoning_effort
Full guide, with values and cost impact →
| 呼び出し先 | アップストリーム | 挙動 | 説明 |
|---|---|---|---|
/v1/chat/completions | OpenAI-compatible (GPT, GLM, DeepSeek, Qwen, Kimi…) | そのまま転送 | そのままプロバイダーへ転送されます。ゲートウェイは値を検証せず、プロバイダーが従うことも保証しません。一般的な値は minimal・low・medium・high ですが、受け付ける範囲はプロバイダー次第です(OpenAI は none も、GLM は max まで受け付けます)。 |
/v1/chat/completions | Google Vertex - Gemini 3.x | 変換 | Gemini の thinkingLevel に変換されます。none と minimal はどちらも minimal に、low/medium/high はそのまま対応します。リクエストに明示的な google.thinking_config がある場合はそちらが優先されます。 |
/v1/chat/completions | Google Vertex - Gemini 2.5 | 破棄 | Gemini 2.5 は thinkingBudget しか解釈せず、thinkingLevel は拒否します。そのためゲートウェイはどちらも送らず、モデルの既定の思考動作のままにします。2.5 を制御するには google.thinking_config の thinking_budget を使ってください。 |
/v1/chat/completions | Anthropic (Claude) | 変換 | Anthropic の thinking に変換されます。none と minimal は思考をオフにし({"type":"disabled"})、low/medium/high/xhigh/max はそれぞれ 2,048 / 8,192 / 16,384 / 32,768 トークンの予算になります——逆方向で使っているバケット変換の逆写像です。段階から導出した予算は max_tokens 未満に収まるようクランプされ、max_tokens が Anthropic の下限 1,024 トークンすら収められない場合は送信しません。したがって段階を指定しても、動いていたリクエストが上流の 400 になることはありません。 |
/v1/messages | OpenAI-compatible (GPT, GLM, DeepSeek, Qwen, Kimi…) | 変換 | 拡張思考が有効かつ予算が 0 より大きい場合に、thinking.budget_tokens から段階的に導出されます:2,048 以下は low、8,192 以下は medium、それ以上は high。予算が 0 または未指定なら何も送りません。 |
/v1/responses | OpenAI-compatible (GPT, GLM, DeepSeek, Qwen, Kimi…) | 変換 | Responses API の reasoning.effort オブジェクトから読み取り、フラットな reasoning_effort フィールドとして送信します。 |
thinking / thinking_budget / enable_thinking
| 呼び出し先 | アップストリーム | 挙動 | 説明 |
|---|---|---|---|
/v1/chat/completions | Anthropic (Claude) | 変換 | これらは同じつまみに対する他ベンダーの名称で、ゲートウェイが正規化します。thinking:{"type":"disabled"}、enable_thinking:false、thinking_budget:0 はいずれも思考をオフにします。thinking_budget:N と thinking:{"type":"enabled","budget_tokens":N} の予算はそのまま転送され、範囲外の値は黙って調整されるのではなく上流が拒否します。thinking:{"type":"adaptive"} は上流の解釈に委ねます。 |
/v1/chat/completions | Google Vertex - Gemini 3.x | 変換 | thinkingConfig に正規化されます。思考のオフは thinkingLevel:"minimal"、明示的な予算は thinkingBudget になります。リクエストに明示的な google.thinking_config があれば、そちらが優先されます。 |
/v1/chat/completions | Google Vertex - Gemini 2.5 | 変換 | thinkingConfig.thinkingBudget に正規化されます——思考のオフは予算 0 を送信し、明示的な予算はそのまま渡します。2.5 は thinkingLevel を拒否するため、ここでは使いません。リクエストに明示的な google.thinking_config があれば、そちらが優先されます。 |
Every row is transcribed from the converter that implements it and pinned by a Go test, so this table cannot drift from the running gateway without a build failing.