fix logging assistant messages
This commit is contained in:
parent
dcf9dadb1c
commit
98a1ae74d7
2 changed files with 14 additions and 4 deletions
|
|
@ -41,6 +41,8 @@ impl ConversationLog {
|
|||
.context("serializing entry for log")?;
|
||||
writeln!(file, "{}", line)
|
||||
.context("writing to conversation log")?;
|
||||
file.sync_all()
|
||||
.context("syncing conversation log")?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue