Created by Samrat Roychoudhury
The Multi-Provider AI Chatbot is a unified conversational platform built using Streamlit, designed to interact with multiple large language model (LLM) providers through a single elegant interface. It supports OpenAI, Google Gemini, Groq, and Ollama, allowing users to seamlessly switch between models and experiment with various generation parameters.
The chatbot features a clean, modern UI, dynamic model selection, real-time response streaming, and exportable chat sessions — making it ideal for both demonstration and professional deployment.
- Connects to major AI providers: OpenAI, Google Gemini, Groq, and Ollama.
- Dynamically loads models without restarting the app.
- Automatically detects API key availability and configuration.
- Streamlit-based UI with custom embedded CSS.
- Gradient background with transparency and modern visual design.
- Sidebar with glassmorphism effect and adaptive theme styling.
- Streamed model responses for natural conversation flow.
- Adjustable temperature and max token settings.
- Persistent chat history with easy export and clearing options.
- Dynamically imports and initializes providers.
- Environment-based configuration for secure key management.
- Easily extendable for future LLM integrations.
Framework: Streamlit Language: Python AI Providers: OpenAI, Google Gemini, Groq, Ollama Core Libraries: LangChain, dotenv, Streamlit Components Styling: Custom CSS and embedded HTML
- Launch the chatbot interface.
- Select your preferred AI Provider and Model from the sidebar.
- Adjust the Temperature and Max Tokens parameters as desired.
- Type your message and receive real-time responses.
- Export or clear conversations directly from the sidebar.
You can attach screenshots in this section after deployment to visually showcase the interface.
| Section | Description |
|---|---|
| Main Interface | Displays the chat layout with user and AI messages. |
| Sidebar Panel | Contains provider, model, and parameter configuration. |
| Chat Clear and Export View | Demonstrates chat history management. |
Clean, centered chat interface showing user and AI messages.
Interactive sidebar with provider selection, model options, and configuration controls.
Chat export and history management section with clear layout and metrics.
Once deployed, include your application URL below:
Application URL: https://generative-ai-chatbot-using-langchain-by-samrat.streamlit.app/
- Integration with additional AI providers (e.g., Anthropic, Perplexity).
- User authentication and session persistence.
- Context-aware memory and conversation continuity.
- Optional speech input and text-to-speech output.
Samrat Roychoudhury Machine Learning & AI Developer
LinkedIn: https://www.linkedin.com/in/samrat-roychoudhury/
Email: [email protected]