DevMaster GPT demonstrates a minimal workflow for using the openai
Python SDK. The main.py
script provides a command-line interface that can generate code snippets, produce documentation, and suggest refactoring ideas via helpers in tools.py
.
- Install Python 3.11 or later.
- Install dependencies using
pip
:pip install -r requirements.txt
- Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your-api-key
Execute the agent with:
python main.py
The script loads the configured tools and runs interactively.
To connect a Telegram bot, set the BOT_TOKEN
environment variable with your
bot token. Then configure the webhook:
curl "https://api.telegram.org/bot$BOT_TOKEN/setWebhook?url=https://<your-host>/api/telegram"
Before committing changes, run the code formatters and linters used in CI.
black .
npx eslint .