Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.67 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.67 KB

TinyGen

TinyGen, a toy version of Codegen, is an AI-powered code evolution catalyst - transforming ideas into precise diffs with a simple prompt!

Demo

Screenshot 2024-11-03 at 17 42 30

Local Setup

  1. Clone the repository:

    git clone https://github.com/angelafeliciaa/TinyGen.git
    cd tinygen
    
  2. 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
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. 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
    
  5. Run the application:

    uvicorn app.main:app --reload
    
  6. Open http://localhost:8000 in your browser to use the application.

Usage

Enter a natural language description of the changes you want to make to your code, and TinyGen will generate the corresponding diff.

Technologies Used

  • FastAPI
  • OpenAI API
  • Supabase
  • AWS S3

Next Steps

  • Integrate Azure Vector Search to improve the relevance and accuracy of generated diffs
  • Implement the OpenAI Batch API to improve response times