We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d11805 commit c5febf5Copy full SHA for c5febf5
llm_dialog_manager/agent.py
@@ -264,8 +264,9 @@ def save_conversation(self):
264
with open(filename, 'w', encoding='utf-8') as file:
265
json.dump(self.history.messages, file, ensure_ascii=False, indent=4)
266
267
- def load_conversation(self):
268
- filename = f"{self.id}.json"
+ def load_conversation(self, filename=None):
+ if filename is None:
269
+ filename = f"{self.id}.json"
270
with open(filename, 'r', encoding='utf-8') as file:
271
messages = json.load(file)
272
self.history = ChatHistory(messages)
0 commit comments