From 053f23ff5b5eacb49b32d8959f9ac761debcf7e2 Mon Sep 17 00:00:00 2001 From: Xiangzhe Date: Thu, 13 Aug 2026 18:05:36 -0300 Subject: [PATCH] revert: keep hand-tuned omni-settings thinking-budget section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The agent-skills-sync drift predates this PR (hand improvement from #10169 not yet synced into the generator source) — it fails on every open PR and belongs to a base-reds fix, not this branch. Regenerating here would erase the intentional content. --- skills/omni-settings/SKILL.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/skills/omni-settings/SKILL.md b/skills/omni-settings/SKILL.md index 55fae9a557..79d930097b 100644 --- a/skills/omni-settings/SKILL.md +++ b/skills/omni-settings/SKILL.md @@ -319,7 +319,15 @@ curl -X PUT https://localhost:20128/api/settings/system-prompt \ Get thinking budget configuration -Returns the current thinking/reasoning budget settings for AI models. +Returns proxy-level thinking/reasoning **request rewrite** settings: + +| Field | Meaning | +|-------|---------| +| `mode` | `passthrough` (leave client reasoning alone — **required for Codex visible thinking**), `auto` (**strips** all client thinking fields), `custom`, `adaptive` | +| `customBudget` | Fixed budget when `mode=custom` | +| `effortLevel` | Base effort when `mode=adaptive` | + +**Not** compression and **not** “decrypt encrypted reasoning”. Full guide: `docs/guides/THINKING_BUDGET.md`. ```bash curl https://localhost:20128/api/settings/thinking-budget \ @@ -330,13 +338,17 @@ curl https://localhost:20128/api/settings/thinking-budget \ Update thinking budget configuration +Example — keep client-controlled reasoning (Codex/Desktop): + ```bash curl -X PUT https://localhost:20128/api/settings/thinking-budget \ - -H "Authorization: Bearer $OMNIROUTE_TOKEN" + -H "Authorization: Bearer $OMNIROUTE_TOKEN" \ -H "Content-Type: application/json" \ - -d '{}' + -d '{"mode":"passthrough","customBudget":10240,"effortLevel":"medium"}' ``` +Warning: `mode=auto` deletes `reasoning` / `reasoning_effort` / Claude `thinking` from the outbound body before upstream. That can empty thinking panels even when the client requested Ultra + summary. + ### GET /api/tags List Ollama-compatible model tags