{"id":29932971,"url":"https://github.com/utkarshg1/groq-chatbot-streamlit","last_synced_at":"2026-05-16T18:31:52.111Z","repository":{"id":307453666,"uuid":"1029553339","full_name":"utkarshg1/groq-chatbot-streamlit","owner":"utkarshg1","description":"LLM Chatbot with Groq","archived":false,"fork":false,"pushed_at":"2025-07-31T08:18:27.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T11:58:26.769Z","etag":null,"topics":["chatbot","groq","langchain-python","llm","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utkarshg1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-31T08:08:31.000Z","updated_at":"2025-07-31T08:20:02.000Z","dependencies_parsed_at":"2025-07-31T11:58:33.632Z","dependency_job_id":"6bb68da2-747b-4066-8150-7abeaee1d6a7","html_url":"https://github.com/utkarshg1/groq-chatbot-streamlit","commit_stats":null,"previous_names":["utkarshg1/groq-chatbot-streamlit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/utkarshg1/groq-chatbot-streamlit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarshg1%2Fgroq-chatbot-streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarshg1%2Fgroq-chatbot-streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarshg1%2Fgroq-chatbot-streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarshg1%2Fgroq-chatbot-streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utkarshg1","download_url":"https://codeload.github.com/utkarshg1/groq-chatbot-streamlit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarshg1%2Fgroq-chatbot-streamlit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270728585,"owners_count":24635249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","groq","langchain-python","llm","streamlit"],"created_at":"2025-08-02T18:34:51.669Z","updated_at":"2026-05-16T18:31:47.089Z","avatar_url":"https://github.com/utkarshg1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 Groq LLM Chat App\n\nA simple interactive chatbot built with **Streamlit**, **LangChain**, and **Groq API**, allowing you to select LLM models and chat with them in real time.\n\n---\n\n### 🚀 Features\n\n- Chat with Groq-hosted LLMs (e.g., LLaMA3, Mixtral)\n- Select from available models dynamically\n- Real-time streaming responses\n- Session-persistent chat history\n- Containerized with Docker\n\n---\n\n### 📁 Project Structure\n\n```\n.\n├── app.py             # Main Streamlit app\n├── models.py          # Model API + response logic\n├── Dockerfile         # Container setup\n├── docker-compose.yml # Optional: Docker orchestration\n├── .env               # Environment variables (not committed)\n└── README.md          # You're here!\n```\n\n---\n\n### 🔧 Requirements\n\n- Python 3.9+\n- A valid [Groq API Key](https://console.groq.com/)\n- A `MODELS_URL` endpoint (usually `https://api.groq.com/openai/v1/models`)\n\n---\n\n### 📦 Installation (Local)\n\n1. **Clone the repo:**\n\n   ```bash\n   git clone https://github.com/your-username/groq-llm-chat.git\n   cd groq-llm-chat\n   ```\n\n2. **Create `.env` file:**\n\n   ```env\n   GROQ_API_KEY=your_groq_api_key\n   MODELS_URL=https://api.groq.com/openai/v1/models\n   ```\n\n3. **Install dependencies:**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Run the app:**\n\n   ```bash\n   streamlit run app.py\n   ```\n\n---\n\n### 🐳 Docker Usage\n\n#### 1. **Build and run with Docker Compose:**\n\n```bash\ndocker-compose up --build\n```\n\nMake sure your `.env` file is in the same directory. It will be automatically loaded by Compose.\n\n#### 2. **Access the app:**\n\nGo to [http://localhost:8501](http://localhost:8501) in your browser.\n\n---\n\n### 🧪 Example `.env`\n\n```env\nGROQ_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\nMODELS_URL=https://api.groq.com/openai/v1/models\n```\n\n---\n\n### 📌 Notes\n\n- Make sure your Groq API key is active and has access to the model endpoints.\n- Model switching is persistent and won't reset your chat unless you manually clear session state.\n\n---\n\n### 📜 License\n\nMIT — free to use and modify.\n\n---\n\n### 👨‍💻 Author\n\nBuilt by **Utkarsh Gaikwad**\nInspired by the power of LLMs and lightweight UIs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkarshg1%2Fgroq-chatbot-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futkarshg1%2Fgroq-chatbot-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkarshg1%2Fgroq-chatbot-streamlit/lists"}