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

... in code blocks (probably) hinders substitution in improve mode

Open ATheorell opened this issue 2 years ago • 0 comments

I ran the below example, but no code was substituted, probably because of the ... in the head block. I have a feeling that the "improve" pre-prompt may be at fault here, since it mentions ... in 4 potentially suggestive places. This was run on commit fb8b6cac8f07ad391ce0202a225c96977649bfaa

gpt-engineer$ gpt-engineer -i . Running gpt-engineer in /home/axel/Software/gpt-engineer-dev

How do you want to select the files?

  1. Use File explorer.
  2. Use Command-Line.

Select option and press Enter (default=1): 1

What do you need to improve with the selected files? Switch from a setuptools build to a poetry build

The following files will be used in the improvement process: file_list.txt: /home/axel/Software/gpt-engineer-dev/pyproject.toml

The inserted prompt is the following: Switch from a setuptools build to a poetry build

You can change these files in your project before proceeding.

Press enter to proceed with modifications.

PLANNING: To switch from a setuptools build to a poetry build, we need to replace the current pyproject.toml file with a new one that uses poetry. The new pyproject.toml file will have a different structure and will include the poetry tool configuration. We will also need to transfer all the dependencies, scripts, and other configurations from the old pyproject.toml to the new one.

OUTPUT:

pyproject.toml
<<<<<<< HEAD
[build-system]
requires = ["setuptools", "wheel"]
...
[tool.setuptools]
packages = ["gpt_engineer", "gpt_engineer.cli", "gpt_engineer.core"]
...
=======
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "gpt-engineer"
version = "0.1.0"
description = "Specify what you want it to build, the AI asks for clarification, and then builds it."
authors = ["Your Name <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/AntonOsika/gpt-engineer"
repository = "https://github.com/AntonOsika/gpt-engineer"
documentation = "https://github.com/AntonOsika/gpt-engineer"
classifiers = [
  "Development Status :: 4 - Beta",
  "Programming Language :: Python :: 3.8",
  "Programming Language :: Python :: 3.9",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
  "License :: OSI Approved :: MIT License",
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
]

[tool.poetry.dependencies]
python = "^3.8"
black = "^23.3.0"
click = "^8.0.0"
mypy = "^1.3.0"
openai = "^0.27.8"
pre-commit = "^3.3.3"
pytest = "^7.3.1"
ruff = "^0.0.272"
termcolor = "^2.3.0"
typer = "^0.3.2"
rudder-sdk-python = "^2.0.2"
dataclasses-json = "^0.5.7"
tiktoken = "^0.0.4"
tabulate = "^0.9.0"
python-dotenv = "^0.21.0"
langchain = "^0.0.240"
agent-protocol = "^1.0.1"

[tool.poetry.dev-dependencies]
pytest = "^7.3.1"
autodoc_pydantic = "^1.8.0"
myst_parser = "^0.18.1"
nbsphinx = "^0.8.9"
sphinx = "^4.5.0"
sphinx-autobuild = "^2021.3.14"
sphinx_book_theme = "^0.3.3"
sphinx_rtd_theme = "^1.0.0"
sphinx-typlog-theme = "^0.8.0"
sphinx-panels = "^0.6.0"
toml = "^0.10.2"
myst-nb = "^0.17.1"
linkchecker = "^10.2.1"
sphinx-copybutton = "^0.5.1"
markdown-include = "^0.6.0"
sphinx_copybutton = "^0.5.2"

[tool.poetry.scripts]
gpt-engineer = 'gpt_engineer.cli.main:app'
ge = 'gpt_engineer.cli.main:app'
>>>>>>> updated

ATheorell avatar Oct 22 '23 10:10 ATheorell