Skip to content

Commit

Permalink
Code Llama
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Aug 28, 2023
1 parent 8984fee commit 9d36114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ def respond(self):
# Code Llama likes to output "###" at the end of every message for some reason
if self.local and "content" in self.messages[-1]:
self.messages[-1]["content"] = self.messages[-1]["content"].strip().rstrip("#")
self.active_block.refresh()
self.active_block.update_from_message(self.messages[-1])
time.sleep(0.1)

self.active_block.end()
return

0 comments on commit 9d36114

Please sign in to comment.