Browse Source

feat: increase Claude Code default max output tokens to 16k (#6312)

feat: increase Claude Code default max output tokens from 8k to 16k

- Changed CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS from 8000 to 16000
- Users can still lower it to 8k via environment variable if needed
- Addresses issue #6125 regarding output token limits

Co-authored-by: Roo Code <[email protected]>
roomote[bot] 5 months ago
parent
commit
fd5bdc7cb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/types/src/providers/claude-code.ts

+ 1 - 1
packages/types/src/providers/claude-code.ts

@@ -22,7 +22,7 @@ export function convertModelNameForVertex(modelName: string): string {
 // Claude Code
 export type ClaudeCodeModelId = keyof typeof claudeCodeModels
 export const claudeCodeDefaultModelId: ClaudeCodeModelId = "claude-sonnet-4-20250514"
-export const CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS = 8000
+export const CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS = 16000
 
 /**
  * Gets the appropriate model ID based on whether Vertex AI is being used.