refactor: Simplify reasoning tag handling in base coder

This commit is contained in:
Paul Gauthier 2025-03-07 16:43:21 -08:00 committed by Paul Gauthier (aider)
parent de4693cdf3
commit 8233eb6007

View file

@ -1384,14 +1384,9 @@ class Coder:
self.partial_response_content = self.get_multi_response_content_in_progress(True)
if self.got_reasoning_content:
reasoning_tag = REASONING_TAG
else:
reasoning_tag = None
self.partial_response_content = self.main_model.remove_reasoning_content(
self.partial_response_content,
reasoning_tag=reasoning_tag,
self.reasoning_tag_name,
)
self.multi_response_content = ""