TinyGen, a toy version of Codegen, is an AI-powered code evolution catalyst - transforming ideas into precise diffs with a simple prompt!
-
Clone the repository:
git clone https://github.com/angelafeliciaa/TinyGen.git cd tinygen -
Create and activate a virtual environment: On Windows:
python -m venv venv venv\Scripts\activateOn macOS and Linux:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Set up environment variables: Create a
.envfile in the root directory and add:OPENAI_API_KEY=your_openai_api_key SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_key -
Run the application:
uvicorn app.main:app --reload -
Open
http://localhost:8000in your browser to use the application.
Enter a natural language description of the changes you want to make to your code, and TinyGen will generate the corresponding diff.
- FastAPI
- OpenAI API
- Supabase
- AWS S3
- Integrate Azure Vector Search to improve the relevance and accuracy of generated diffs
- Implement the OpenAI Batch API to improve response times
