mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
fixed tests
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
from const.function_calls import GET_FILES, DEV_STEPS, IMPLEMENT_CHANGES, CODE_CHANGES
|
||||
from database.models.files import File
|
||||
from helpers.files import update_file
|
||||
from helpers.AgentConvo import AgentConvo
|
||||
from helpers.Agent import Agent
|
||||
|
||||
|
||||
class CodeMonkey(Agent):
|
||||
def __init__(self, project, developer):
|
||||
super().__init__('code_monkey', project)
|
||||
@@ -20,12 +19,11 @@ class CodeMonkey(Agent):
|
||||
# "finished_steps": ', '.join(f"#{j}" for j in range(step_index))
|
||||
# }, GET_FILES)
|
||||
|
||||
|
||||
changes = convo.send_message('development/implement_changes.prompt', {
|
||||
"step_description": code_changes_description,
|
||||
"step_index": step_index,
|
||||
"directory_tree": self.project.get_directory_tree(True),
|
||||
"files": []#self.project.get_files(files_needed),
|
||||
"files": [] # self.project.get_files(files_needed),
|
||||
}, IMPLEMENT_CHANGES)
|
||||
convo.remove_last_x_messages(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user