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 upYou 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-agentNote that running the agent outside of a container is not recommended.
Install the dependencies using pip:
pip install -r requirements.txtpython3 app/agent.py