From c2e7b533d3a773d22b5e32b4c543828e5506550c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Mar 2025 18:28:47 -0800 Subject: [PATCH] feat: Add reasoning content indicators in response handling --- aider/coders/base_coder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 93bb441c4..d7409e768 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1758,6 +1758,8 @@ class Coder: try: text = chunk.choices[0].delta.reasoning_content if text: + if not self.got_reasoning_content: + self.partial_response_content += "> Thinking ...\n\n" self.got_reasoning_content = True self.partial_response_content += text received_content = True @@ -1768,7 +1770,7 @@ class Coder: text = chunk.choices[0].delta.content if text: if self.got_reasoning_content and not self.ended_reasoning_content: - tag = f"\n\n> Done thinking ...\n\n------\n\n\n\n" + tag = f"\n\n> ... done thinking.\n\n------\n\n\n\n" self.partial_response_content += tag self.ended_reasoning_content = True