mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
wip
This commit is contained in:
parent
f00a1e827a
commit
a6d80e815e
2 changed files with 9 additions and 8 deletions
|
@ -355,7 +355,10 @@ class Coder:
|
|||
|
||||
return self.send_new_user_message(inp)
|
||||
|
||||
num_ticks = 4
|
||||
num_ticks = 5
|
||||
|
||||
def get_fence_ticks(self):
|
||||
return "`" * self.num_ticks
|
||||
|
||||
def fmt_system_reminder(self):
|
||||
prompt = self.gpt_prompts.system_reminder
|
||||
|
@ -364,18 +367,16 @@ class Coder:
|
|||
explain = f"""
|
||||
You *MUST* use {num_ticks} backticks, because some files contain {num_ticks-1} backticks already!"""
|
||||
|
||||
self.fence_ticks = "`" * num_ticks
|
||||
|
||||
number_mapping = {
|
||||
3: "triple",
|
||||
4: "quadruple",
|
||||
5: "quintuple",
|
||||
# 4: "quadruple",
|
||||
# 5: "quintuple",
|
||||
}
|
||||
num_ticks_name = number_mapping.get(num_ticks, str(num_ticks))
|
||||
|
||||
prompt = prompt.format(
|
||||
num_ticks=num_ticks_name,
|
||||
fence=self.fence_ticks,
|
||||
fence=self.get_fence_ticks(),
|
||||
num_ticks_explanation=explain,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue