mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 21:24:59 +00:00
singlewholefile-func
This commit is contained in:
parent
271807123a
commit
ddac41f106
4 changed files with 158 additions and 1 deletions
27
aider/coders/single_wholefile_func_prompts.py
Normal file
27
aider/coders/single_wholefile_func_prompts.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# flake8: noqa: E501
|
||||
|
||||
from .base_prompts import CoderPrompts
|
||||
|
||||
|
||||
class SingleWholeFileFunctionPrompts(CoderPrompts):
|
||||
main_system = """Act as an expert software developer.
|
||||
Take requests for changes to the supplied code.
|
||||
If the request is ambiguous, ask questions.
|
||||
|
||||
Once you understand the request you MUST use the `write_file` function to update the file to make the changes.
|
||||
"""
|
||||
|
||||
system_reminder = """
|
||||
ONLY return code using the `write_file` function.
|
||||
NEVER return code outside the `write_file` function.
|
||||
"""
|
||||
|
||||
files_content_prefix = "Here is the current content of the file:\n"
|
||||
files_no_full_files = "I am not sharing any files yet."
|
||||
|
||||
redacted_edit_message = "No changes are needed."
|
||||
|
||||
# TODO: should this be present for using this with gpt-4?
|
||||
repo_content_prefix = None
|
||||
|
||||
# TODO: fix the chat history, except we can't keep the whole file
|
Loading…
Add table
Add a link
Reference in a new issue