Removed You.com web search integration from the codebase as requested.
- ✅
src/ai/flows/search-web-you.ts- You.com search flow - ✅
src/lib/you-search-service.ts- You.com API service - ✅
src/app/api/web-search/route.ts- Web search API endpoint
-
✅
src/ai/flows/process-user-message.ts- Removed
searchWebYouimport - Updated WEB_SEARCH intent handler to fall through to conversational response
- Added log message indicating no search provider configured
- Removed
-
✅
src/app/user-management/page.tsx- Changed Web Search status from "active" to "planned"
- Updated description to "Real-time web search (coming soon)"
-
✅
src/app/actions.ts- Removed You.com reference from comments
-
✅
.env.local.example- Removed
YOU_API_KEYconfiguration - Removed You.com API documentation
- Removed
-
✅
scripts/verify-api-keys.js- Removed
testYouAPI()function - Removed function call from test suite
- Removed
-
✅
scripts/test-api-routes.js- Removed
/api/web-searchroute test
- Removed
- ✅
INTENT_DETECTION_SYSTEM.md- Updated WEB_SEARCH intent to indicate no provider configured
When a user query is detected as WEB_SEARCH intent:
- System logs: "WEB_SEARCH intent detected but no search provider configured"
- Falls back to conversational response using the selected AI model
- No error is thrown - graceful degradation
- Web Search feature now shows as "planned" status in user management page
- No functional impact on other features
- All other intents (IMAGE_GENERATION, VIDEO_GENERATION) continue to work
After removal:
- ✅ 17 API routes active (was 18)
- ❌
/api/web-search- Removed - ✅ All other routes working normally
YOU_API_KEY- No longer needed
GROQ_API_KEY- Primary AI providerGOOGLE_API_KEY- Fallback AI + embeddingsCEREBRAS_API_KEY- Fast inferenceHUGGINGFACE_API_KEY- Image generation- Firebase configuration - Auth + storage
- EmailJS configuration - Email service
Run the following to verify removal:
# Test API routes (should show 17 routes, no web-search)
npm run test:api
# Verify environment (should not mention YOU_API_KEY)
npm run verify-env
# Check for any remaining references
grep -r "you.com\|YOU_COM\|you-search\|youSearch" src/If you want to add web search back in the future:
- Choose a search provider (Google Custom Search, Bing, Brave Search, etc.)
- Create new service file:
src/lib/[provider]-search-service.ts - Create new flow:
src/ai/flows/search-web-[provider].ts - Update
process-user-message.tsto call the new flow - Add API endpoint:
src/app/api/web-search/route.ts - Add API key to
.env.local.example - Update documentation
All You.com references have been removed from the codebase. The application continues to function normally with all other features intact.