feat: Introduce a /reset command to clear the chat session and token tracking, and update documentation.
This commit is contained in:
@@ -34,6 +34,14 @@ internal sealed class TokenTracker
|
||||
LastInputTokens = inputTokens;
|
||||
RequestCount++;
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
SessionInputTokens = 0;
|
||||
SessionOutputTokens = 0;
|
||||
RequestCount = 0;
|
||||
LastInputTokens = 0;
|
||||
}
|
||||
|
||||
|
||||
private const int MaxContextReserve = 150_000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user