Commit e0ca891
Use Opus 4.6 as default tokenizer for non-Claude models
Opus 4.7's tokenizer differs from most models; using 4.6 gives more
representative counts for open-source models routed through the
Anthropic count_tokens endpoint.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d3b7ef6 commit e0ca891
File tree
2 files changed
+2
-1
lines changed- common/src/constants
- web/src/app/api/v1/token-count
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments