Closed esbjornlg closed 5 months ago
This is a problem with the model used and/or the parameters used, not with gpt-engineer itself.
@esbjornlg I'll proceed with closing this issue since it doesn't seem to be related to gpt-engineer. If you encounter the same issue while using GPT 4 as a model, for example, feel free to open a new one.
Thanks for reporting this!
Expected Behavior
Filenames should have the correct names that the LLM produced.
Current Behavior
Filenames have parantheses around the names. Also, even though the LLM outputs that the file should be in a specific folder, all files are put in the root of the working directory.
Failure Information
OS: WSL with Ubuntu 22.04.1 on Windows 10 22H2 GPTEngineer python package 0.2.8 LLM: Locally hosted codellama:13b-instruct-q4_0 on Ollama.
Prompt: Multiplayer snake in the browser. Use a python backend with MVC components. The view needs to stream the state to all connected players. Please implement also the html and js necessary to run the game with only the code you generate.
Failure Logs
These files were created during this run: (controllers.py) (index.html) (main.js) (requirements.txt) (views.py) run.sh
Output
This is a multiplayer snake game that can be played in the browser. The game uses a Python backend with an MVC (Model-View-Controller) architecture. The view streams the state of the game to all connected players, and the user can control their snake using the arrow keys.
Here's a high-level overview of the architecture:
model
: This module contains the logic for the game, including the rules for how the snakes move and interact with each other. It also defines the data structures used to represent the state of the game.view
: This module is responsible for rendering the game state to the screen. It uses HTML and JavaScript to create a user interface that allows players to control their snake.controller
: This module handles incoming requests from the player, such as key presses or mouse movements. It updates the model with the new state of the game and then renders the updated view.server
: This module is responsible for handling incoming connections from players and routing them to the appropriate controller. It also manages the communication between the server and the clients.Here's a more detailed breakdown of each module:
model The model module contains the logic for the game, including the rules for how the snakes move and interact with each other. It defines the data structures used to represent the state of the game, such as the position and direction of each snake.
view The view module is responsible for rendering the game state to the screen. It uses HTML and JavaScript to create a user interface that allows players to control their snake.
+more that I have cut off