Put the required API keys in the file .env (VAR=VALUE, one per line).
Required:
OPENAI_API_KEY
: OpenAI API keyOPENAI_ORG_ID
: OpenAI organization ID
Optional:
SERPAPI_KEY
: SerpAPI keyGOOGLE_API_KEY
: Google API keyGOOGLE_SEARCH_ID
: Google search ID
docker-compose build
docker-compose up
You can place your .env file in the app directory.
docker build -t gpt-agent .
docker run -p 8080:8080 -v $(pwd)/results:/project -it gpt-agent
Note that running the agent outside of a container is not recommended.
Install the dependencies using pip:
pip install -r requirements.txt
python3 app/agent.py