Skip to content

Commit b609820

Browse files
authored
chore: bump default max tokens to 1M (#992)
Signed-off-by: Grant Linville <[email protected]>
1 parent de7bebe commit b609820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openai/count.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func init() {
1313
tiktoken.SetBpeLoader(tiktoken_loader.NewOfflineLoader())
1414
}
1515

16-
const DefaultMaxTokens = 128_000
16+
const DefaultMaxTokens = 1_000_000 // This is the limit for GPT-4.1
1717

1818
func decreaseTenPercent(maxTokens int) int {
1919
maxTokens = getBudget(maxTokens)

0 commit comments

Comments
 (0)