mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
refactor: Revert reasoning content tag changes to original implementation
This commit is contained in:
parent
7a098ce740
commit
148353aca4
1 changed files with 2 additions and 2 deletions
|
@ -1804,7 +1804,7 @@ class Coder:
|
|||
reasoning_content = chunk.choices[0].delta.reasoning_content
|
||||
if reasoning_content:
|
||||
if not self.got_reasoning_content:
|
||||
text += REASONING_START
|
||||
text += f"<{REASONING_TAG}>\n\n"
|
||||
text += reasoning_content
|
||||
self.got_reasoning_content = True
|
||||
received_content = True
|
||||
|
@ -1815,7 +1815,7 @@ class Coder:
|
|||
content = chunk.choices[0].delta.content
|
||||
if content:
|
||||
if self.got_reasoning_content and not self.ended_reasoning_content:
|
||||
text += REASONING_END
|
||||
text += f"\n\n</{REASONING_TAG}>\n\n"
|
||||
self.ended_reasoning_content = True
|
||||
|
||||
text += content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue