GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Feature Request] Configuration to Limit Input Tokens per Request · Issue #2637 · anomalyco/opencode Closed DescriptionIs your feature request related to a problem? Please describe. Yes. Currently, when in a long chat session, For many tasks, only the most recent portion of the conversation is relevant for generating the next response. For example, I may only need the last 50,000 tokens of context, not the full 1 million. As it stands, I am paying for the processing of the entire chat history on every single request, which is financially wasteful and increases API latency. There is currently no way to control this behavior without manually clearing the session, which causes the entire local context to be lost. Describe the solution you'd like I would like a configuration setting in For example, a user could set: {
"maxInputTokens": 50000
}When this setting is active, the This would give users direct control over their API costs and latency without forcing them to lose the valuable context available locally in the terminal. As LLM models continue to increase their maximum context window, I imagine the need for this type of feature will only increase over time. Describe alternatives you've considered
Additional context This feature would be a critical improvement for power users and anyone on a budget. It provides essential control over token consumption, which is a key factor in using any LLM-based tool. This type of context management is a standard feature in many other LLM interfaces (for example, aider has a Slight variation Perhaps a better name should be Reacted by Mikhail Kuzmin, Thomas, Jacek Królikowski and Tijl Leenders Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |