gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

This is the basic structure...?

Open ansorre opened this issue 1 year ago • 2 comments

My execution ends with this sentence:

This is the basic structure of the [my-app-name] app. The code provided here sets up the necessary classes, functions, and methods for the app. The actual implementation of the methods and functions is left as an exercise for the developer.

where [my-app-name] is a placeholder for the name of my app.

Is this a Joke? I want it to write it all, not just the structure. How to do it? Thanks

ansorre avatar Jun 17 '23 11:06 ansorre

copy and paste the contents of your all_output.txt to the bottom of the Main_prompt file; remove the "this is the basic structure of [...]" footer and any other redundant junk. modify the top of new main_prompt to include something along the lines of "prioritize completion of function implementations". go to [main]/indentity/ and edit "philosophy" and add a new top line like "ALWAYS Implements complete functions, and writes to file when coding classes and modules." - try again!

noxiouscardiumdimidium avatar Jun 17 '23 15:06 noxiouscardiumdimidium

This is ChatGPT refusing to actually write or finish the code which happens quite a bit when interacting with it directly. I do not understand why OpenAI has not thought through or addressed this, but I suspect it is part of their deal with Microsoft to not be a full coding provider.

I have had success with getting ChatGPT to complete applications by continuing the conversation and asking for each component 1 by 1 and I created Issue #119 to request similar functionality be added to gpt-engineer.

clickbrain avatar Jun 17 '23 17:06 clickbrain

how to

hacklili avatar Jun 18 '23 14:06 hacklili

use

hacklili avatar Jun 18 '23 14:06 hacklili

@hacklili please read the README file.

patillacode avatar Jun 18 '23 14:06 patillacode

copy and paste the contents of your all_output.txt to the bottom of the Main_prompt file; remove the "this is the basic structure of [...]" footer and any other redundant junk. modify the top of new main_prompt to include something along the lines of "prioritize completion of function implementations". go to [main]/indentity/ and edit "philosophy" and add a new top line like "ALWAYS Implements complete functions, and writes to file when coding classes and modules." - try again!

Unfortunately, i tried your suggestions, and now he reached the point where he just rewrites the code over and over and over again, always new, always ignoring both the philosophy and the previous code, and he keeps giving "pass" to a looot of the functions, nearly most. weird stuff. maybe something with the way memory is logged. Not only that, he seems to just ignore the main prompt completely - i give him a full code with functions, it rewrites it with passed functions and new names...

cranyy avatar Jun 18 '23 14:06 cranyy

Hi @cranyy

Please create a new issue with your problem explained in the most explicit way possible, with example and we will try to help you.

Also, make sure you read the README and are using the latest stable version:

pip install --upgrade gpt-engineer

patillacode avatar Jun 18 '23 14:06 patillacode