mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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
|
reasoning_content = chunk.choices[0].delta.reasoning_content
|
||||||
if reasoning_content:
|
if reasoning_content:
|
||||||
if not self.got_reasoning_content:
|
if not self.got_reasoning_content:
|
||||||
text += REASONING_START
|
text += f"<{REASONING_TAG}>\n\n"
|
||||||
text += reasoning_content
|
text += reasoning_content
|
||||||
self.got_reasoning_content = True
|
self.got_reasoning_content = True
|
||||||
received_content = True
|
received_content = True
|
||||||
|
@ -1815,7 +1815,7 @@ class Coder:
|
||||||
content = chunk.choices[0].delta.content
|
content = chunk.choices[0].delta.content
|
||||||
if content:
|
if content:
|
||||||
if self.got_reasoning_content and not self.ended_reasoning_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
|
self.ended_reasoning_content = True
|
||||||
|
|
||||||
text += content
|
text += content
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue