mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-23 02:18:53 +01:00
Improved prompts by removing unnecessary new lines
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
Response from the CLI:
|
||||
```
|
||||
{{ cli_response }}
|
||||
```
|
||||
{{ cli_response }}
|
||||
@@ -1,14 +1,10 @@
|
||||
{% if files|length > 0 %}
|
||||
Here is how files look now:
|
||||
{% if files|length > 0 %}Here is how files look now:
|
||||
{% for file in files %}
|
||||
**{{ file.path }}**
|
||||
```{# file.language #}
|
||||
{{ file.content }}
|
||||
```
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Now, think step by step and apply the needed changes for step #{{ step_index }} - {{ step_description }}.
|
||||
{% endfor %}{% endif %}Now, think step by step and apply the needed changes for step #{{ step_index }} - `{{ step_description }}`.
|
||||
|
||||
Within the file modifications, anything needs to be written by the user, add the comment in the same line as the code that starts with `// INPUT_REQUIRED {input_description}` where `input_description` is a description of what needs to be added here by the user. Finally, you can save the modified files on the disk by calling `save_files` function.
|
||||
@@ -20,15 +20,15 @@ Here are the technologies that you need to use for this project:
|
||||
- {{ tech }}{% endfor %}
|
||||
```
|
||||
|
||||
{% if parent_task %}
|
||||
You are currently working on this task:
|
||||
```
|
||||
{{ array_of_objects_to_string(parent_task) }}
|
||||
```
|
||||
We've broken it down to these subtasks:
|
||||
```{% for subtask in sibling_tasks %}
|
||||
- {{ subtask['description'] }}{% endfor %}
|
||||
{% if current_task_index != 0 %}
|
||||
So far, this code has been implemented
|
||||
{% for file in files %}
|
||||
**{{ file.path }}**
|
||||
```{# file.language #}
|
||||
{{ file.content }}
|
||||
```
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Now, tell me all the code that needs to be written to implement this app and have it fully working and all commands that need to be run to implement this app.
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
{#You need to implement the current changes into a codebase:
|
||||
-- INSTRUCTIONS --
|
||||
{{ instructions }}
|
||||
-- END OF INSTRUCTIONS --#}
|
||||
{% if step_index != 0 %}
|
||||
So far, steps {{ finished_steps }} are finished so let's do
|
||||
{% else %}
|
||||
Let's start with the
|
||||
{% endif %}
|
||||
step #{{ step_index }} - `{{ step_description }}`.
|
||||
-- END OF INSTRUCTIONS --
|
||||
#}{% if step_index != 0 %}So far, steps {{ finished_steps }} are finished so let's do{% else %}Let's start with the{% endif %} step #{{ step_index }} - `{{ step_description }}`.
|
||||
|
||||
{# I will give you each file that needs to be changed and you will implement changes from the instructions. #}To do this, you will need to see the currently implemented files so first, filter the files outlined above that are relevant for the instructions. Then, tell me files that you need to see so that you can make appropriate changes to the code. If no files are needed (eg. if you need to create a file), just return an empty array.
|
||||
{#
|
||||
|
||||
Reference in New Issue
Block a user