add deletion and prepopulated reacts

This commit is contained in:
2025-08-21 17:23:20 -07:00
parent ae7843cf17
commit dd47cc05a6
2 changed files with 21 additions and 6 deletions

View File

@@ -68,6 +68,11 @@ class Conversation:
{"role": "assistant", "content": assistant},
])
def pop(self):
if len(self.history) >= 3:
self.history = self.history[:-2]
self.save()
async def generate(self, text, media=tuple()):
# prepare text part
if text: