gpt-engineer-org / gpt-engineer

Platform to experiment with the AI Software Engineer. Terminal based. NOTE: Very different from https://gptengineer.app
MIT License
52.55k stars 6.83k forks source link

It's only using python... #563

Closed GsHeri closed 1 year ago

GsHeri commented 1 year ago

Expected Behavior

I've seen 3 or 4 issues here asking if gpt-engineer could use languages other than python. the answer was always something like "yes, of course, it's chatgpt writing the code, so you can use everything"

Current Behavior

no matter what i do, it is always using python. even if i explicitly forbid it to use python, and stress it in the clarifications why?

image

image

cosmopolitan033 commented 1 year ago

i encountered same problem using many kinds of gpt project on github

Notloc commented 1 year ago

Two things I can think of to reduce this issue, as I was experiencing this as well.

  1. Do NOT tell the AI "don't use Python", don't even mention Python to it. Repeated mentions tend to make it more likely to use Python, regardless of the fact that you are telling it not to. Instead, request the desired language multiple times in your prompt.
  2. Edit the preprompts in your local install. The philosophy file in particular, has a lot of python specific instructions, removing those should help the AI stop thinking about Python.
AntonOsika commented 1 year ago

AntonOsika commented 1 year ago

PR should to philosophy should fix this