mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Correct condition for adding assistant reply in Coder class
This commit is contained in:
parent
13d24278f2
commit
02f28d12e3
1 changed files with 1 additions and 1 deletions
|
@ -1329,7 +1329,7 @@ class Coder:
|
||||||
self.add_assistant_reply_to_cur_messages()
|
self.add_assistant_reply_to_cur_messages()
|
||||||
|
|
||||||
if exhausted:
|
if exhausted:
|
||||||
if not self.cur_messages or self.cur_messages[-1]["role"] == "user":
|
if self.cur_messages and self.cur_messages[-1]["role"] == "user":
|
||||||
self.cur_messages += [
|
self.cur_messages += [
|
||||||
dict(
|
dict(
|
||||||
role="assistant",
|
role="assistant",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue