mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-09 06:05:00 +00:00
Add AskCoder functionality to handle user questions about the codebase
This commit is contained in:
parent
f44347e72d
commit
69af6f8ab5
3 changed files with 9 additions and 11 deletions
|
@ -7,7 +7,7 @@ from .single_wholefile_func_coder import SingleWholeFileFunctionCoder
|
|||
from .udiff_coder import UnifiedDiffCoder
|
||||
from .wholefile_coder import WholeFileCoder
|
||||
from .wholefile_func_coder import WholeFileFunctionCoder
|
||||
from .chat_coder import ChatCoder
|
||||
from .ask_coder import AskCoder
|
||||
|
||||
__all__ = [
|
||||
Coder,
|
||||
|
@ -19,5 +19,5 @@ __all__ = [
|
|||
SingleWholeFileFunctionCoder,
|
||||
UnifiedDiffCoder,
|
||||
HelpCoder,
|
||||
ChatCoder,
|
||||
AskCoder,
|
||||
]
|
||||
|
|
|
@ -4,9 +4,9 @@ from aider import diffs
|
|||
|
||||
from ..dump import dump # noqa: F401
|
||||
from .base_coder import Coder
|
||||
from .chat_prompts import ChatPrompts
|
||||
from .ask_prompts import AskPrompts
|
||||
|
||||
|
||||
class ChatCoder(Coder):
|
||||
edit_format = "chat"
|
||||
gpt_prompts = ChatPrompts()
|
||||
class AskCoder(Coder):
|
||||
edit_format = "ask"
|
||||
gpt_prompts = AskPrompts()
|
Loading…
Add table
Add a link
Reference in a new issue