Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip #6629

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

wip #6629

wants to merge 6 commits into from

Conversation

abeatrix
Copy link
Contributor

Improve

Test plan

Should work as it does currently.

Adds a new feature flag `DeepCodyRateSessionLimit` to limit the usage of deep-cody to the first 5 human messages in a chat session for fallback if needed.

This change ensures that we have a fallback plan when agentic context is causing issues and used excessively, especially in long-running chat sessions, to optimize for performance when needed.

## Test plan

Manual testing to ensure agentic context is only used for the first 5 human messages when the session limit flag is enabled.
- Enhance the `DeepCodyRateLimiter` to cache the last used time and provide consistent wait time between calls when at the limit
- Reset the cache after the wait period expires to allow usage again
- Improve the error message displayed to users when they reach the daily limit for agentic context`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant