mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 03:02:14 +03:00
revert: keep hand-tuned omni-settings thinking-budget section
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user