Roo-Code/packages
Roo Code a1125ce31e feat: add maxInputTokens parameter to enforce per-request token limits
- Add maxInputTokens field to ProviderSettings schema to allow configuring max input tokens per request
- Update sliding window logic to respect maxInputTokens limit when provided
- Use the more restrictive limit between maxInputTokens and context window
- Add comprehensive tests for the new functionality

This addresses the issue where Gemini 2.5 Pro free tier users cannot enforce the 125k input token limit, causing 429 errors. Users can now set maxInputTokens: 125000 in their API configuration to stay within the free tier limits.

Fixes #7853
2025-09-10 15:20:41 +00:00
..
build Sharing improvements (#5082) 2025-06-24 16:36:32 -04:00
cloud Publish token usage metrics (#7637) 2025-09-03 13:51:27 -07:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
evals Add model info to eval runs table (#7749) 2025-09-06 22:10:08 -07:00
ipc Add an API for resuming tasks by ID (#7122) 2025-08-15 12:03:58 -04:00
telemetry Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
types feat: add maxInputTokens parameter to enforce per-request token limits 2025-09-10 15:20:41 +00:00