Commit eb2d403
feat: parse context size threshold from model name suffix
Model names ending with [1m], [70k], [128k], etc. now set the
compaction threshold to that context window size automatically,
avoiding hardcoded per-model special-cases.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9dca459 commit eb2d403
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
78 | 95 | | |
79 | 96 | | |
80 | 97 | | |
| |||
0 commit comments