refactor: Simplify reasoning tag handling and remove unused function

This commit is contained in:
Paul Gauthier 2025-03-07 16:26:47 -08:00 committed by Paul Gauthier (aider)
parent 8fb235c3f5
commit de4693cdf3
2 changed files with 15 additions and 26 deletions

View file

@ -1743,11 +1743,13 @@ class Coder:
show_resp = self.render_incremental_response(True)
if reasoning_content:
formatted_reasoning = (
format_reasoning_content(reasoning_content, self.reasoning_tag_name) + "\n\n"
formatted_reasoning = format_reasoning_content(
reasoning_content, self.reasoning_tag_name
)
show_resp = formatted_reasoning + show_resp
show_resp = replace_reasoning_tags(show_resp, self.reasoning_tag_name)
self.io.assistant_output(show_resp, pretty=self.show_pretty())
if (