UNPKG

@kdump/code-cli-any-llm

Version:

> A unified gateway for the Gemini, opencode, crush, and Qwen Code AI CLIs

47 lines 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.performanceConfig = void 0; exports.performanceConfig = { maxRequestBodySize: '4gb', maxResponseBodySize: '4gb', rateLimiting: { windowMs: 15 * 60 * 1000, max: process.env.CAL_RATE_LIMIT_MAX ? parseInt(process.env.CAL_RATE_LIMIT_MAX, 10) : 100000000, skip: (req) => { return req.path === '/health'; }, standardHeaders: true, legacyHeaders: false, }, connectionPool: { maxSockets: 100, maxFreeSockets: 10, keepAlive: true, keepAliveMsecs: 30000, timeout: 60000, }, caching: { modelsTTL: 5 * 60 * 1000, healthCheckTTL: 30 * 1000, }, retryConfig: { maxRetries: 3, initialDelayMs: 1000, maxDelayMs: 10000, retryCondition: (error) => { if (error.code === 'ECONNREFUSED' || error.code === 'ETIMEDOUT') { return true; } if (error.status && error.status >= 500 && error.status < 600) { return true; } if (error.status === 429) { return true; } return false; }, }, }; //# sourceMappingURL=performance.config.js.map