<<<<<<< HEAD A collaborative AI system where GPT-oss, Gemma, and Flux work together to provide the best possible answers.
A collaborative AI system where GPT-OSS-120B and Gemma 3-4B-IT work together with real-time streaming to provide the best possible answers.
- β‘ Real-time Streaming - See responses as they're generated (like ChatGPT)
- π€ Individual Agent Views - Expand to see each agent's contribution
- π‘οΈ Smart Error Handling - Retry logic + graceful degradation
- π Response Regeneration - Regenerate any response instantly
- π¨ Enhanced UI/UX - Toast notifications, loading skeletons, keyboard shortcuts
- β¨οΈ Keyboard Shortcuts - Cmd/Ctrl+K for new chat
- π Code Copy Button - One-click copy for code blocks
- π Agent Transparency - See GPT-OSS β Gemma β Final synthesis
e65d0a6 (feat: Enhanced Light Mode UI, multi-agent persistence, and terminal code blocks)
- π€ Real AI Collaboration - Two premium AI models discuss and refine answers
- π¬ Sequential Discussion - Each AI builds on previous responses <<<<<<< HEAD
- π¨ Image Generation - Fluxintegration for creating images
- πΎ Conversation History - Remember all your chats =======
- π¨ Image Generation - Flux.2 integration for creating images
- πΎ Conversation History - Remember all your chats (coming soon)
e65d0a6 (feat: Enhanced Light Mode UI, multi-agent persistence, and terminal code blocks)
- β‘ Best Quality - Synthesized answers from multiple perspectives
<<<<<<< HEAD
- GPT-oss provides initial comprehensive analysis
- Gemma reviews, finds gaps, and adds improvements and synthesizes both into the best final answer
- You get one polished response from true AI collaboration =======
- GPT-OSS-120B provides initial comprehensive analysis
- Gemma 3-4B-IT reviews, finds gaps, and adds improvements
- You get one polished response from true AI collaboration
- Streaming - Watch the magic happen in real-time!
e65d0a6 (feat: Enhanced Light Mode UI, multi-agent persistence, and terminal code blocks)
npm installnpm run setupOr manually:
npm install
npx prisma generate
npx prisma migrate dev --name initCreate/update .env.local:
# NVIDIA NIM API Keys (get from https://build.nvidia.com)
GPT_OSS_API_KEY=your_key_here
GEMMA_API_KEY=your_key_here
FLUX_API_KEY=your_key_here
# Database (optional)
DATABASE_URL="file:./dev.db"npm run dev<<<<<<< HEAD
- User submits a query
- Agent 1 (GPT-oss) provides initial analysis
- Agent 2 (Gemma) reviews and adds perspective and synthesizes the best final answer =======
Cmd/Ctrl + K- Start new conversationShift + Enter- New line in messageEnter- Send message
- Click "Show Agent Responses" to see individual agent contributions
- Click "Regenerate" to get a new response
- Hover over code blocks to see the Copy button
- Watch real-time streaming as agents think and respond
e65d0a6 (feat: Enhanced Light Mode UI, multi-agent persistence, and terminal code blocks)
User Query
β
<<<<<<< HEAD
Agent 1: GPT-oss (Analysis)
β
Agent 2: Gemma (Critical Review and Synthesis)
β
Final Answer
=======
βββββββββββββββββββββββββββ
β Streaming Pipeline β
βββββββββββββββββββββββββββ€
β 1. GPT-OSS (Analysis) β β Real-time streaming
β 2. Gemma (Synthesis) β β Real-time streaming
β 3. Final Response β
βββββββββββββββββββββββββββ
β
Enhanced UI with Toast + Loading States
>>>>>>> e65d0a6 (feat: Enhanced Light Mode UI, multi-agent persistence, and terminal code blocks)
- Next.js 14 (App Router) with TypeScript
- NVIDIA NIM API (AI model access)
- Prisma + SQLite (Database - optional)
- React with hooks and streaming
- Tailwind CSS with custom design system
- Server-Sent Events (SSE) for streaming
Streaming endpoint with real-time updates
- Uses Server-Sent Events (SSE)
- Returns agent responses as they're generated
- Better UX with instant feedback
Non-streaming endpoint (still works)
- Returns complete response only
- Simpler but slower perceived performance
- SETUP_GUIDE.md - Detailed setup and feature guide
- β Streaming responses with SSE
- β Retry logic with exponential backoff (3 attempts)
- β Graceful degradation (fallback to Agent 1 if Agent 2 fails)
- β Better error messages and handling
- β Individual agent response tracking
- β Real-time streaming UI
- β Toast notifications (success/error/info)
- β Loading skeletons and smooth animations
- β Expandable agent response cards
- β Regenerate button on each response
- β Code block copy buttons
- β Keyboard shortcuts (Cmd/Ctrl+K)
- β Professional design system
- πΎ Conversation persistence (database ready!)
- π Search conversations
- π€ Export conversations (Markdown/PDF)
- π Share conversations (public links)
- π€ User authentication
- π Usage analytics
- Free with NVIDIA NIM (check their limits)
- No monthly subscription required
- Pay-per-use model
# Run development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Open Prisma Studio (database GUI)
npm run prisma:studio
# Generate Prisma client
npm run prisma:generate
# Run database migrations
npm run prisma:migrate- Check browser console for errors
- Verify API keys in
.env.local - Try the legacy endpoint first:
/api/chat
- Run
npm run prisma:generate - Run
npm run prisma:migrate - Check
DATABASE_URLin.env.local
- Verify API keys are correct
- Check NVIDIA NIM API status
- Review rate limits
- Streaming: Perceived 3x faster response time
- Error Handling: 3 automatic retries with backoff
- Fallback: Always returns best available response
- Optimized: Production build with tree-shaking
Contributions welcome! Feel free to open an issue or submit a pull request.
MIT