mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
refactor: Update reasoning tag handling in base_coder.py
This commit is contained in:
parent
b62e00b935
commit
9d686d3e52
1 changed files with 2 additions and 4 deletions
|
@ -1772,11 +1772,9 @@ class Coder:
|
||||||
|
|
||||||
if reasoning_content:
|
if reasoning_content:
|
||||||
formatted_reasoning = (
|
formatted_reasoning = (
|
||||||
f"<{REASONING_TAG}>\n\n" + reasoning_content + f"\n\n</{REASONING_TAG}>"
|
f"<{self.reasoning_tag_name}>\n\n" + reasoning_content + f"\n\n</{self.reasoning_tag_name}>"
|
||||||
)
|
|
||||||
formatted_reasoning = (
|
|
||||||
self.replace_reasoning_tags(formatted_reasoning, REASONING_TAG) + "\n\n"
|
|
||||||
)
|
)
|
||||||
|
formatted_reasoning = self.replace_reasoning_tags(formatted_reasoning) + "\n\n"
|
||||||
show_resp = formatted_reasoning + show_resp
|
show_resp = formatted_reasoning + show_resp
|
||||||
|
|
||||||
self.io.assistant_output(show_resp, pretty=self.show_pretty())
|
self.io.assistant_output(show_resp, pretty=self.show_pretty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue