Closed Metranohm closed 1 year ago
I have the exact same :)
seeing this too
The issue you are seeing is not GPT Engineer's fault AFAIU.
I'd say your app is missing the start
command, usually defined in one of the config files in frontend applications (nuxt example).
Bear in mind the generated code in your case is being done by gpt-3.5-turbo
model, which is not perfect, and might be missing something like that.
I had a similar issue since we added more "introspection".
Looking into the logs (in memory folder)
Feel free to do the same and collect discussion here!
Hey all!
Fixed this now.
Using multiple system prompt with "You are a super smart developer. You have been asked to make a specification for a program." made it think that it was writing a completely new program
FYI @FOLLGAD
I'm facing this issue right now
I followed the recently updated instructions and got GPT Engineer to run (python -m gpt_engineer.main my-new-project), but haven't had any luck since. I asked it to build a blackjack game using mern stack using a detailed prompt from ChatGPT. The first time I ran it it saw my prompt and showed it in the terminal but right when my prompt ended it started showing the prompt for a flight booking app then showed the code it was going to create for the flight app. I started again and now it disregards my prompt entirely and shows the prompt for a to-do app followed immediately by a recipe app. I tried deleting all the prompts for benchmark but it did nothing. This is what my terminal shows:
gpt-engineer git:(main) ✗ python -m gpt_engineer.main my-new-project Model gpt-4 not available for provided api key reverting to gpt-3.5.turbo. Sign up for the gpt-4 wait list here: https://openai.com/waitlist/gpt-4-api Specification:
The program is a web application that allows users to create and manage their own to-do lists. The application should have the following features:
User Authentication: Users should be able to create an account, log in, and log out. Users should not be able to access any part of the application without being authenticated.
Create a To-Do List: Users should be able to create a new to-do list with a title and description.
Add Tasks: Users should be able to add tasks to their to-do lists. Each task should have a title, description, and due date.
Edit Tasks: Users should be able to edit the title, description, and due date of any task on their to-do list.
Mark Tasks as Complete: Users should be able to mark tasks as complete when they have finished them.
Delete Tasks: Users should be able to delete tasks from their to-do list.
View To-Do Lists: Users should be able to view all of their to-do lists and the tasks associated with each list.
Search To-Do Lists: Users should be able to search for specific to-do lists by title.
Share To-Do Lists: Users should be able to share their to-do lists with other users of the application.
Notifications: Users should receive notifications when a task is due or when a shared to-do list is updated.
Core Classes/Functions/Methods:
User: A class that represents a user of the application. It should have attributes for the user's name, email, and password. It should also have methods for creating an account, logging in, and logging out.
ToDoList: A class that represents a to-do list. It should have attributes for the list's title, description, and tasks. It should also have methods for adding tasks, editing tasks, marking tasks as complete, and deleting tasks.
Task: A class that represents a task on a to-do list. It should have attributes for the task's title, description, due date, and completion status. It should also have methods for editing the task's title, description, and due date, as well as marking the task as complete.
Notification: A class that represents a notification. It should have attributes for the notification's message, recipient, and timestamp.
Authentication: A class that handles user authentication. It should have methods for creating an account, logging in, and logging out.
Search: A class that handles searching for to-do lists by title. It should have a method for searching for a specific to-do list by title.
Sharing: A class that handles sharing to-do lists with other users. It should have methods for sharing a to-do list with another user and updating a shared to-do list.
Dependencies:
React: A JavaScript library for building user interfaces.
Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine.
Express: A web application framework for Node.js.
MongoDB: A NoSQL database used for storing data.
Mongoose: A MongoDB object modeling tool designed to work in an asynchronous environment.
Passport: An authentication middleware for Node.js.
Socket.IO: A JavaScript library for real-time web applications.Unfortunately, I cannot provide feedback on a specification that has not been provided. Please provide me with the specification so that I can review it and provide feedback.Specification:
The program is a web application that allows users to create and manage their own recipe collections. The application should have the following features:
User Authentication: Users should be able to create an account, log in, and log out. Users should not be able to access any part of the application without being authenticated.
Create a Recipe: Users should be able to create a new recipe with a title, description, ingredients, and instructions.
Edit a Recipe: Users should be able to edit the title, description, ingredients, and instructions of any recipe in their collection.
Delete a Recipe: Users should be able to delete any recipe from their collection.
View Recipes: Users should be able to view all of the recipes in their collection.
Search Recipes: Users should be able to search for specific recipes by title or ingredients.
Share Recipes: Users should be able to share their recipes with other users of the application.
Rate Recipes: Users should be able to rate recipes on a scale of 1-5 stars.
Comment on Recipes: Users should be able to leave comments on recipes.
Notifications: Users should receive notifications when a recipe is shared with them, when a recipe they have shared is rated or commented on, and when a recipe they have rated or commented on is updated.
Core Classes/Functions/Methods:
User: A class that represents a user of the application. It should have attributes for the user's name, email, and password. It should also have methods for creating an account, logging in, and logging out.
Recipe: A class that represents a recipe. It should have attributes for the recipe's title, description, ingredients, instructions, and rating. It should also have methods for editing the recipe's title, description, ingredients, and instructions, as well as deleting the recipe.
Notification: A class that represents a notification. It should have attributes for the notification's message, recipient, and timestamp.
Authentication: A class that handles user authentication. It should have methods for creating an account, logging in, and logging out.
Search: A class that handles searching for recipes by title or ingredients. It should have methods for searching for a specific recipe by title or ingredients.
Sharing: A class that handles sharing recipes with other users. It should have methods for sharing a recipe with another user and updating a shared recipe.
Rating: A class that handles rating recipes. It should have methods for rating a recipe and updating the rating of a recipe.
Comment: A class that handles commenting on recipes. It should have methods for leaving a comment on a recipe and updating the comments on a recipe.
Dependencies:
React: A JavaScript library for building user interfaces.
Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine.
Express: A web application framework for Node.js.
MongoDB: A NoSQL database used for storing data.
Mongoose: A MongoDB object modeling tool designed to work in an asynchronous environment.
Passport: An authentication middleware for Node.js.
Socket.IO: A JavaScript library for real-time web applications.Here are some sample tests based on the given specification:
User Authentication:
Create a Recipe:
Edit a Recipe:
Delete a Recipe:
View Recipes:
Search Recipes:
Share Recipes:
Rate Recipes:
Comment on Recipes:
Notifications:
The entry point file will be responsible for starting the server and connecting to the database. It will also define the routes for the API.
Routes (routes.js):
The routes file will define the endpoints for the API.
User Model (User.js):
The User model will define the schema for a user and methods for creating an account, logging in, and logging out.
User Controller (UserController.js):
The User controller will handle requests related to user authentication.
Recipe Model (Recipe.js):
The Recipe model will define the schema for a recipe and methods for editing, deleting, and sharing a recipe.
Recipe Controller (RecipeController.js):
The Recipe controller will handle requests related to recipes.
cd /home/metranohm/code/sandbox/gpt-engineer/my-new-project/workspace npm install npm start