mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-29 12:40:16 +08:00
limit story context to avoid out of mem
This commit is contained in:
1 parent
8e8896aa38
commit
3a6f5aa475
1 file changed
+3
@@ -64,6 +64,9 @@ class Story:
|
||||
def add_to_story(self, action, story_block):
|
||||
self.actions.append(action)
|
||||
self.results.append(story_block)
|
||||
if (len(str(self)) > 3900): # (Fix some mem errors. From RTech, max story of 3900 characters for GTX 2080 ti 11GB
|
||||
self.actions.pop(1)
|
||||
self.results.pop(1)
|
||||
|
||||
def latest_result(self):
|
||||
|
||||
|
||||
Reference in new issue
Block a user