mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
The trimming loop condition `for keep >= minKeep` was never true because `keep` started at 20 while `minKeep` defaults to 25. Added clamp to ensure `keep >= minKeep` at initialization, fixing prompt budget enforcement. Affected functions: - trimOpenAIChatCompletions - trimOpenAIResponses - trimOpenAIChatCompletionsWithMemory - trimOpenAIResponsesWithMemory - trimClaudeMessagesWithMemory Co-Authored-By: Claude (gemini-claude-opus-4-5-thinking) <noreply@anthropic.com>