Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ATheorell opened this issue Oct 22, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ATheorell
Copy link
Collaborator

ATheorell commented Oct 22, 2023

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 fb8b6ca

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:/AntonOsika/gpt-engineer"
repository = "https:/AntonOsika/gpt-engineer"
documentation = "https:/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants