Roo-Code/apps/web-evals/next.config.js
Roo Code a6738ab5ad fix: handle "prompt is too long" errors automatically
- Add error detection for Anthropic "prompt is too long" errors
- Implement automatic context reduction when token limits exceeded
- Use conservative token buffering (15%) for small context windows (≤250k)
- Add pre-request validation to catch token overages before API calls
- Provide user feedback when automatic context reduction occurs
- Add comprehensive tests for error handling scenarios

Fixes #5816
2025-07-17 14:57:34 +00:00

9 lines
275 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var nextConfig = {
webpack: function (config) {
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] };
return config;
},
};
exports.default = nextConfig;