Skip to content

Commit

Permalink
Fix saving replies with code to history
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovcmedeiros committed Mar 2, 2024
1 parent 1d79188 commit a86c27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrobbot/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def _yield_response_from_msg(
for chunk in make_api_chat_completion_call(
conversation=[self.base_directive, *context, prompt_msg], chat_obj=self
):
full_reply_content += chunk
full_reply_content += chunk.strip(self._code_marker)
yield chunk

if not skip_check:
Expand Down

0 comments on commit a86c27a

Please sign in to comment.