mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
add a user message during --show-prompts
This commit is contained in:
parent
5bd875ffbf
commit
48fd67485c
2 changed files with 4 additions and 1 deletions
|
@ -418,7 +418,7 @@ class Coder:
|
|||
if repo_content:
|
||||
if all_content:
|
||||
all_content += "\n"
|
||||
all_content += repo_content
|
||||
all_content += repo_content + "\n"
|
||||
|
||||
if self.abs_fnames:
|
||||
files_content = self.gpt_prompts.files_content_prefix
|
||||
|
|
|
@ -342,6 +342,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
coder.show_announcements()
|
||||
|
||||
if args.show_prompts:
|
||||
coder.cur_messages += [
|
||||
dict(role="user", content="Hello!"),
|
||||
]
|
||||
messages = coder.format_messages()
|
||||
utils.show_messages(messages)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue