Open SamuelDevdas opened 2 months ago
Hello @SamuelDevdas!
Thanks for your contribution! The save_output_to_file
flag is indeed intended to save the last message from the Assistant. However, I see the value in introducing a new parameter, save_chat_to_file
, that would save the entire conversation. This would be a great addition to the functionality.
Would you be interested in working on this and creating a new PR? Let me know if you'd like to take this on!
Sure, makes sense. I can add the new input param as suggested and update my pull request.
Could you please review the pull request #1101 and let me know if that works for you? , then I can add the new input parameter as well.
Title:
'save_output_to_file = True' does not save the FULL chat history?
SCREENSHOTS
Description:
I'm encountering an issue where the
save_output_to_file = True
option does not seem to save the full chat history as expected.Steps to Reproduce:
Set the
save_output_to_file
parameter in the assistant configuration as follows:Note: disregard the timestamp fstring in the image attached, that is just to keep track of files
Run the assistant and engage in multiple interactions.
Expected Behavior:
The full chat history should be saved to the specified file, capturing all interactions from start to finish.
Actual Behavior:
Only the assistants latest reply is saved, and previous interactions (including user message) seem to be missing from the file.
Configuration Details:
add_chat_history_to_prompt=True
num_history_messages=10
Attached are screenshots of the issue:
Please let me know if additional details are needed or if there's a workaround for this issue.