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 <roomote@roocode.com>
This commit is contained in:
roomote[bot] 2025-07-29 21:07:25 -04:00 committed by GitHub
parent e654ced135
commit fd5bdc7cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.