mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
refactor: Simplify reasoning tag handling and remove unused function
This commit is contained in:
parent
8fb235c3f5
commit
de4693cdf3
2 changed files with 15 additions and 26 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue