Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
fix: Increase MAX_REQUEST_BODY_SIZE from 10MB to 100MB to support image-heavy requests
Prakersh Maheshwaribbe113a5f558
diff --git a/headroom/proxy/server.py b/headroom/proxy/server.pyindex 786d27fb5..72e9e4c75 100644--- a/headroom/proxy/server.py+++ b/headroom/proxy/server.py@@ -139,8 +139,8 @@ logging.basicConfig()logger = logging.getLogger("headroom.proxy")-# Maximum request body size (10MB)-MAX_REQUEST_BODY_SIZE = 10 * 1024 * 1024+# Maximum request body size (100MB - increased to support image-heavy requests)+MAX_REQUEST_BODY_SIZE = 100 * 1024 * 1024# =============================================================================