Context Window Exceeded fix (#4977)

This commit is contained in:
Engel Nyst
2024-11-14 03:42:39 +01:00
committed by GitHub
parent a93f1402de
commit 8dee334236
3 changed files with 320 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ class State:
# start_id and end_id track the range of events in history
start_id: int = -1
end_id: int = -1
# truncation_id tracks where to load history after context window truncation
truncation_id: int = -1
almost_stuck: int = 0
delegates: dict[tuple[int, int], tuple[str, str]] = field(default_factory=dict)
# NOTE: This will never be used by the controller, but it can be used by different