Skip to content

Commit 88de476

Browse files
committed
chore: bump default max tokens to 1M
Signed-off-by: Grant Linville <grant@acorn.io>
1 parent de7bebe commit 88de476

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)