mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
added temp param, prompt strong that files message is truth
This commit is contained in:
parent
df84bcf38b
commit
819fccc7a4
7 changed files with 22 additions and 14 deletions
10
aider/io.py
10
aider/io.py
|
@ -331,7 +331,7 @@ class InputOutput:
|
|||
if message.strip():
|
||||
if "\n" in message:
|
||||
for line in message.splitlines():
|
||||
self.append_chat_history(line, linebreak=True, blockquote=True)
|
||||
self.append_chat_history(line, linebreak=True, blockquote=True, strip=strip)
|
||||
else:
|
||||
if strip:
|
||||
hist = message.strip()
|
||||
|
@ -354,12 +354,14 @@ class InputOutput:
|
|||
style = dict(style=self.tool_output_color) if self.tool_output_color else dict()
|
||||
self.console.print(*messages, **style)
|
||||
|
||||
def append_chat_history(self, text, linebreak=False, blockquote=False):
|
||||
def append_chat_history(self, text, linebreak=False, blockquote=False, strip=True):
|
||||
if blockquote:
|
||||
text = text.strip()
|
||||
if strip:
|
||||
text = text.strip()
|
||||
text = "> " + text
|
||||
if linebreak:
|
||||
text = text.rstrip()
|
||||
if strip:
|
||||
text = text.rstrip()
|
||||
text = text + " \n"
|
||||
if not text.endswith("\n"):
|
||||
text += "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue