feat: Add AI model configuration settings (Phase 3.4)#26
Conversation
- Added Dockerfile for containerized deployment - Added fly.toml with Fly.io configuration - Added .dockerignore to exclude unnecessary files - Added comprehensive DEPLOYMENT.md guide
- Created backend settings API routes: - GET /models - List available AI models with capabilities and costs - GET /presets - Get quality presets (low-cost, balanced, premium) - GET /current - Get current configuration with cost estimate - POST /update - Update configuration (preset or custom models) - POST /estimate - Estimate cost for a configuration - POST /reset - Reset to low-cost mode - Created frontend settings page with: - Quality preset selection (Low-Cost FREE, Balanced $3.50, Premium $7) - Cost estimation display (total cost, tokens, agents, phases) - Advanced mode for per-agent model customization - Cost breakdown by agent role - Save/Reset functionality with loading states - Updated server.js to include settings routes
Original prompt from Datakult |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…s-data feat: Session 9 - Remaining Pages Data Integration
…vements docs: Add PRD, deployment config, and fix README merge conflict
Summary
Adds a settings page for configuring which AI models power each agent role in the research pipeline. Users can choose from three quality presets (Low-Cost FREE, Balanced $3.50, Premium $7) or customize individual agent models in advanced mode.
Backend (296 lines): New
/api/settingsroutes with endpoints for listing models, presets, current config, updating settings, cost estimation, and reset.Frontend (427 lines): New
/settingspage with preset cards, cost estimation display, advanced per-agent configuration, and cost breakdown visualization.Review & Testing Checklist for Human
researchService.jsoragent_models.py. Check if changing presets actually affects which models are used during research./api/settings/*routes have no authentication. Decide if model configuration should require auth to prevent unauthorized cost increases.let currentSettings = {...}and reset on server restart. For production, migrate to Supabase storage./settings, select each preset, toggle advanced mode, change individual agent models, save, and verify the configuration persists (until server restart).Recommended test plan:
/settingsNotes
Link to Devin run: https://app.devin.ai/sessions/9573820f0f6d41dab1cff8a61c26c981
Requested by: @Datakult0r