Commit 2d01b5d
fix(cli): derive /effort table from core EFFORT_PARAMS (single source of truth) (#147)
The /effort picker hardcoded a maxTokens/temperature table (low=1024 … max=32768,
temps 0.0–0.7) that diverged from EFFORT_PARAMS in @deepcode/core — the values the
REPL and headless paths actually send to DeepSeek (low=1500 … max=8192, temps
0.2–0.8). Users running /effort saw "max = 32768 tokens, temp 0.7" while the
provider really capped at 8192 tokens, temp 0.8 — pure misinformation.
Derive the picker rows from EFFORT_PARAMS so there is one source of truth; keep
only the human-readable use-case hint CLI-local. Adds a regression test asserting
the rendered table matches EFFORT_PARAMS and never shows the stale numbers.
Co-authored-by: t <t@t>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 91817ae commit 2d01b5d
2 files changed
Lines changed: 45 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
120 | 134 | | |
121 | 135 | | |
122 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
150 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
151 | 173 | | |
152 | | - | |
| 174 | + | |
153 | 175 | | |
154 | 176 | | |
155 | 177 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
163 | 184 | | |
164 | 185 | | |
165 | 186 | | |
| |||
0 commit comments