Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
test: fix integration tests resolving limits from CI environments
diegosouzapw004ed83689ea
diff --git a/tests/unit/chatcore-compression-integration.test.ts b/tests/unit/chatcore-compression-integration.test.tsindex 66bccce02a..a34ee21408 100644--- a/tests/unit/chatcore-compression-integration.test.ts+++ b/tests/unit/chatcore-compression-integration.test.ts@@ -7,7 +7,7 @@ test("chatCore integration: compressContext called proactively when context exceconst provider = "openai";const model = "gpt-4";- const contextLimit = getTokenLimit(provider, model);+ const contextLimit = 8192; // Hardcoded to 8192 to avoid DB dependency causing 128k evaluationconst threshold = Math.floor(contextLimit * 0.85);const history = Array.from({ length: 24 }, (_, index) => [@@ -53,7 +53,7 @@ test("chatCore integration: compressContext NOT called when context is below 85%const provider = "openai";const model = "gpt-4";- const contextLimit = getTokenLimit(provider, model);+ const contextLimit = 8192;const threshold = Math.floor(contextLimit * 0.85);const smallMessage = "Hello, how are you?";@@ -82,7 +82,7 @@ test("chatCore integration: compression preserves message structure", async () =const provider = "claude";const model = "claude-sonnet-4";- const contextLimit = getTokenLimit(provider, model);+ const contextLimit = 200000;const body = {model,@@ -115,7 +115,7 @@ test("chatCore integration: compression handles tool messages", async () => {const provider = "openai";const model = "gpt-4";- const contextLimit = getTokenLimit(provider, model);+ const contextLimit = 8192;const longToolOutput = "x".repeat(50000);const body = {