diff --git a/pyrobbot/chat.py b/pyrobbot/chat.py index 8df81a3..e7964f9 100644 --- a/pyrobbot/chat.py +++ b/pyrobbot/chat.py @@ -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: