A Streamlit app that uses the Groq API to help you:
- Generate code from natural-language prompts.
- Review existing code with structured feedback.
- Find and fix bugs with root-cause-oriented suggestions.
- English → Code tab with language selection and optional comments/tests.
- Code Review tab with checks for quality, performance, and security.
- Bug Fixer tab for debugging with optional error/traceback context.
- Groq model selector and session-scoped API key input.
- Python-focused modes for deeper generation/review/debug guidance.
- Python 3.10+
- A Groq API key
Install dependencies:
pip install -r requirements.txtstreamlit run ai_code_assistant.pyThen open the local URL shown by Streamlit (typically http://localhost:8501).
You can provide your Groq API key in either of these ways:
- In-app (Assistant Settings panel) — stored in Streamlit session state for the current browser session.
- Streamlit secrets — set
GROQ_API_KEYin your Streamlit secrets file.
.
├── ai_code_assistant.py
├── requirements.txt
└── README.md
- This app calls LLMs and may produce imperfect output. Always review generated or fixed code before production use.
- The selected model affects quality, speed, and token limits.