mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
ensure the LLM response is logged even if token limits reached #705
This commit is contained in:
parent
ecb3d81055
commit
716e4d99a0
1 changed files with 8 additions and 8 deletions
|
@ -1041,14 +1041,14 @@ class Coder:
|
|||
except KeyboardInterrupt:
|
||||
self.keyboard_interrupt()
|
||||
interrupted = True
|
||||
|
||||
if self.partial_response_content:
|
||||
self.io.ai_output(self.partial_response_content)
|
||||
elif self.partial_response_function_call:
|
||||
# TODO: push this into subclasses
|
||||
args = self.parse_partial_args()
|
||||
if args:
|
||||
self.io.ai_output(json.dumps(args, indent=4))
|
||||
finally:
|
||||
if self.partial_response_content:
|
||||
self.io.ai_output(self.partial_response_content)
|
||||
elif self.partial_response_function_call:
|
||||
# TODO: push this into subclasses
|
||||
args = self.parse_partial_args()
|
||||
if args:
|
||||
self.io.ai_output(json.dumps(args, indent=4))
|
||||
|
||||
if interrupted:
|
||||
raise KeyboardInterrupt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue