You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A modern, fully-featured AI chat web application built with ASP.NET Core and integrated with multiple LLM providers.
๐ Overview
AI Chat Hub is a sophisticated chat application that allows users to interact with multiple AI providers (OpenAI, Groq, Hugging Face) through a beautiful, modern interface. Features include multiple chat management, persistent storage, and a responsive design.
โจ Key Features
๐ฌ Multi-Provider Support - Seamlessly switch between OpenAI, Groq, and Hugging Face models
๐ Chat Management - Create, manage, and organize multiple conversations
๐พ Persistent Storage - All chats automatically saved to JSON file
๐ท๏ธ Auto-Naming - Chat titles generated from first user message
๐ฑ Responsive Design - Works beautifully on desktop, tablet, and mobile
๐จ Modern UI - Clean, intuitive interface inspired by ChatGPT
โก Real-time Updates - Instant message display with loading indicators
๐ Chat Controls - Edit, delete, and regenerate messages
๐ File Upload Support - Attach files to messages
๐ Dark Theme - Eye-friendly dark mode interface
๐ ๏ธ Technology Stack
Backend
Technology
Version
Purpose
ASP.NET Core
10.0
Web application framework and runtime
C#
12.0
Primary backend programming language
.NET CLI
Latest
Build, run, and manage the project
MVC Pattern
-
Application architecture and separation of concerns
Frontend
Technology
Version
Purpose
HTML5
-
Semantic markup and structure
CSS3
-
Modern styling with gradients and animations
JavaScript (ES6+)
-
Interactive frontend functionality
Razor Pages
-
Dynamic server-side rendering
APIs & LLM Integration
Service
Purpose
Model(s)
OpenAI API
Primary LLM provider
gpt-4o-mini
Groq API
Fast LLM inference
llama-3.3-70b-versatile
Hugging Face API
Alternative provider
Phi-3-mini
Data & Storage
Technology
Purpose
JSON
Chat persistence and configuration storage
File System
Local data storage (chats.json)
Development Tools
Tool
Version
Purpose
Visual Studio Code
Latest
Code editor and IDE
Git
2.x
Version control system
NuGet
Latest
.NET package manager
OpenAI SDK
Latest
Official OpenAI API client library
๐๏ธ Project Structure
AIChat/
โโโ Controllers/
โ โโโ HomeController.cs # Request handling and business logic
โโโ Models/
โ โโโ ChatViewModel.cs # View model for chat data
โ โโโ ChatData.cs # Chat persistence model
โโโ Views/
โ โโโ Home/
โ โ โโโ Index.cshtml # Main chat interface
โ โโโ Shared/
โ โโโ _Layout.cshtml # Master layout template
โโโ wwwroot/
โ โโโ css/
โ โ โโโ chat.css # Stylesheet (gradients, animations, dark theme)
โ โโโ js/
โ โโโ site.js # Frontend interactivity
โโโ Properties/
โ โโโ launchSettings.json # Development server configuration
โโโ appsettings.json # Application configuration
โโโ apiconfig.json # API keys for LLM providers
โโโ chats.json # Persistent chat storage
โโโ Program.cs # Application entry point
AI Chat Hub is a modern ASP.NET Core web app that lets users interact with multiple AI providers like OpenAI, Groq, and Hugging Face through a clean, responsive interface using MVC. It supports multi-chat management, persistent history, and real-time responses, delivering a ChatGPT-like experience.