small tweaks and fixes

This commit is contained in:
Senko Rasic
2024-02-10 17:39:34 -08:00
parent 005ee3b2e5
commit 9ef4818c02
3 changed files with 13 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ Based on these details, think step by step to design the architecture for the pr
* If a dependency (such as database) has a cloud alternative or can be installed on another computer (ie. isn't required on this computer), you must mark it as `required_locally: false`
Output only your response in JSON format like in this example, without other commentary:
```
```json
{
"architecture": "Detailed description of the architecture of the application",
"system_dependencies": [

View File

@@ -14,6 +14,6 @@ the full contents of the updated file, without skipping over any content
```
------------------------end_of_format---------------------------
**IMPORTANT**: Your reply MUST NOT omit any code in the new implementation or substitute anything with comments like `// .. rest of the code goes here ..` or `# insert existing code here`, because I will overwrite the existing file with the content you provide. Output ONLY the content for this file, without additional explanation. Your output MUST start with ``` and MUST end with ``` and include only the complete file contents.
**IMPORTANT**: Your reply MUST NOT omit any code in the new implementation or substitute anything with comments like `// .. rest of the code goes here ..` or `# insert existing code here`, because I will overwrite the existing file with the content you provide. Output ONLY the content for this file, without additional explanation, suggestions or notes. Your output MUST start with ``` and MUST end with ``` and include only the complete file contents.
{{ logs_and_error_handling }}

View File

@@ -26,7 +26,7 @@ Examples:
"type": "modify_file",
"modify_file": {
"name": "server.js",
"path": "/server.ejs",
"path": "/server.js",
"code_change_description": "Update code to use port from environment instead of hardcoding it.\nReplace this line:\nconst port = 3001;\nwith\nconst port = process.env.PORT || 3001;\n",
},
},
@@ -34,7 +34,7 @@ Examples:
"type": "modify_file",
"modify_file": {
"name": "server.js",
"path": "/server.ejs",
"path": "/server.js",
"code_change_description": "Within findByEmail() method of User model, replace `return await User.find({email});` with a try/catch block:\ntry\n{ return await User.find({email});\n} catch (err)\n{ return null; }\n",
},
},
@@ -45,6 +45,15 @@ Examples:
"path": "/README.md",
"content": "# Example Readme\n\nThis is an example readme for the example project.\n\nThanks to everyone who contributes to this repository!\n"
}
},
{
"type": "command",
"command": {
"command": "ls",
"timeout": "5000",
"success_message": "README.md",
"command_id": "check_existence_of_readme_file"
}
}
]
}