mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
just use the Rules as the reminder
This commit is contained in:
parent
e0fea58276
commit
bbc174a8fb
2 changed files with 18 additions and 12 deletions
|
@ -103,10 +103,20 @@ class Commands:
|
|||
|
||||
res = []
|
||||
|
||||
self.coder.choose_fence()
|
||||
|
||||
# system messages
|
||||
msgs = [
|
||||
dict(role="system", content=self.coder.gpt_prompts.main_system),
|
||||
dict(role="system", content=self.coder.gpt_prompts.system_reminder),
|
||||
dict(
|
||||
role="system",
|
||||
content=self.coder.gpt_prompts.main_system
|
||||
+ "\n"
|
||||
+ self.coder.fmt_system_reminder(),
|
||||
),
|
||||
dict(
|
||||
role="system",
|
||||
content=self.coder.fmt_system_reminder(),
|
||||
),
|
||||
]
|
||||
tokens = self.coder.main_model.token_count(msgs)
|
||||
res.append((tokens, "system messages", ""))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue