Skip to content

Commit 22d948d

Browse files
committed
Increase Claude max_tokens to 180K for larger diffs
- Increase max_tokens from 32K to 180K to allow for larger diff generation - Note: Actual limit depends on context window (200K total for Sonnet 4.5) - With ~150K input tokens, effective output limit is ~50K, but API will enforce actual limit
1 parent 755789c commit 22d948d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/agent/agent.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ async function callAI(promptText) {
973973
if (provider === "claude") {
974974
const response = await aiClient.messages.create({
975975
model: aiModel,
976-
max_tokens: 32768, // Increased to 32K for larger diffs
976+
max_tokens: 180000, // Increased to 180K for very large diffs (note: actual limit depends on context window)
977977
temperature: 0.2,
978978
messages: [{ role: "user", content: promptText }],
979979
});

0 commit comments

Comments
 (0)