Skip to content

Commit f83181d

Browse files
authored
chore: lower default max tokens to 400k (#993)
Signed-off-by: Grant Linville <[email protected]>
1 parent b609820 commit f83181d

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 = 1_000_000 // This is the limit for GPT-4.1
16+
const DefaultMaxTokens = 400_000 // This is the limit for GPT-5
1717

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

0 commit comments

Comments
 (0)