TinyGen, a toy version of Codegen, is an AI-powered code evolution catalyst - transforming ideas into precise diffs with a simple prompt!
A live demo of TinyGen is available at https://tinygen-31646a1cc468.herokuapp.com. Navigate to https://tinygen-31646a1cc468.herokuapp.com/docs to see the API documentation.
-
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\activate
On macOS and Linux:
python3 -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.env
file 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:8000
in 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