eca
eca copied to clipboard
Add ability to enable OpenRouter's context compression plugin
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
While using openrouter/minimax/minimax-m2.7, I tried attaching a PDF and, via emacs, eca replied:
Context window exceeded. Auto-compacting conversation...
LLM response status: 400 body: {"error":{"message":"This endpoint's maximum context length is 204800
tokens. However, you requested about 626524 tokens (585543 of text input, 8981 of tool input, 32000 in the
output). Please reduce the length of either one, or use the context-compression plugin to compress your
prompt automatically.","code":400,"metadata":{"provider_name":null}}}
This would not have been acceptable for my situation since I needed a review of the entire document, but it would be good to have the option to use context creation for cases where that makes sense.
@hexmode I believe yo ucan already do that adding to eca's extraPayload right?
check the example
Closing this, LMK otherwise