Spaces:
Paused
Paused
- Conversation.py +1 -1
Conversation.py
CHANGED
@@ -29,5 +29,5 @@ class Conversation:
|
|
29 |
self.messages.append({"role": "assistant", "content": message})
|
30 |
|
31 |
if len(self.messages) > self.num_of_round*2 + 1:
|
32 |
-
del self.messages[1:3]
|
33 |
return message
|
|
|
29 |
self.messages.append({"role": "assistant", "content": message})
|
30 |
|
31 |
if len(self.messages) > self.num_of_round*2 + 1:
|
32 |
+
del self.messages[1:3] #Remove the first round conversation left.
|
33 |
return message
|