Skip to content

Commit

Permalink
Update pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
njbbaer committed May 4, 2024
1 parent 6892d43 commit f36ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulacrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_conversation_cost(self):
return self.context.conversation_cost

def _filter_hidden(self, response):
response = re.sub(r"<THINK>.*?</>", "", response, flags=re.DOTALL)
response = re.sub(r"<think>.*?</think>", "", response, flags=re.DOTALL)
return response.strip()

def _set_stats(self, completion):
Expand Down

0 comments on commit f36ea1c

Please sign in to comment.