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

Fix/docker container

Open zigabrencic opened this issue 1 year ago • 0 comments

@viborc @ATheorell to test:

cd gpt-engineer
docker build --rm -t gpt-engineer -f docker/Dockerfile .

cd parent/folder/of/my/test-project

docker run -it --rm -e OPENAI_API_KEY="$OPENAI_API_KEY" -v ./test-project:/project gpt-engineer

Above works all the correct output with prompt file:

Write a python script that sums up two numbers. Provide only the `sum_two_numbers` function and nothing else.

Provide two tests:

- assert(sum_two_numbers(100, 10) == 110)
- assert(sum_two_numbers(10.1, 10) == 20.1)

but I get:

/usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:120: LangChainDeprecationWarning: Importing SQLiteCache from langchain is deprecated. Please replace deprecated imports:

>> from langchain import SQLiteCache

with new imports of:

>> from langchain_community.cache import SQLiteCache

  warn_deprecated(

Propose we fix the above too. Do we do it in a separate PR? The langchain.cache fix?

zigabrencic avatar May 09 '24 18:05 zigabrencic