mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-05 19:00:22 +01:00
Smaller fixes
This commit is contained in:
@@ -51,7 +51,7 @@ class AgentConvo:
|
||||
if isinstance(message_content, list):
|
||||
if len(message_content) > 0 and isinstance(message_content[0], dict):
|
||||
string_response = [
|
||||
f'#{i + 1}\n' + array_of_objects_to_string(d)
|
||||
f'#{i}\n' + array_of_objects_to_string(d)
|
||||
for i, d in enumerate(message_content)
|
||||
]
|
||||
else:
|
||||
|
||||
@@ -43,7 +43,6 @@ class Developer(Agent):
|
||||
"user_tasks": self.project.user_tasks,
|
||||
"technologies": self.project.architecture,
|
||||
"array_of_objects_to_string": array_of_objects_to_string,
|
||||
# TODO remove hardcoded folder path
|
||||
"directory_tree": self.project.get_directory_tree(),
|
||||
"current_task_index": current_task_index,
|
||||
"sibling_tasks": sibling_tasks,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% if files|length > 0 %}
|
||||
Here is how files look now:
|
||||
{% for file in files %}
|
||||
**{{ file.name }}**
|
||||
**{{ file.path }}**
|
||||
```{# file.language #}
|
||||
{{ file.content }}
|
||||
```
|
||||
|
||||
@@ -3,7 +3,11 @@ So far, steps {{ finished_steps }} are finished so let's do
|
||||
{% else %}
|
||||
Let's start with the
|
||||
{% endif %}
|
||||
step #{{ step_index }} - `{{ step_description }}`. This step by step about what needs to be done to fulfill this step.
|
||||
step #{{ step_index }}:
|
||||
```
|
||||
{{ step_description }}
|
||||
```
|
||||
This step by step about what needs to be done to fulfill this step.
|
||||
{% if step_type == 'COMMAND' %}
|
||||
Respond with all commands that need to be run to fulfill this step. In case this is a complex step that can't be completed by only running commands (maybe it requires some code changes or user review), respond with an array with only one item `COMPLEX`. Like this - `[{"command": "COMPLEX", "timeout": 0}]`
|
||||
{% elif step_type == 'CODE_CHANGE' %}
|
||||
|
||||
Reference in New Issue
Block a user