mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
make the examples part of the chat
This commit is contained in:
parent
d38a38f0dd
commit
d51cada163
3 changed files with 42 additions and 76 deletions
|
@ -526,6 +526,13 @@ class Coder:
|
|||
messages = [
|
||||
dict(role="system", content=main_sys),
|
||||
]
|
||||
for msg in self.gpt_prompts.example_messages:
|
||||
messages.append(
|
||||
dict(
|
||||
role=msg["role"],
|
||||
content=self.fmt_system_prompt(msg["content"]),
|
||||
)
|
||||
)
|
||||
|
||||
self.summarize_end()
|
||||
messages += self.done_messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue