AI Configuration & Fallback System - #89
Open
K-Sai-2005 wants to merge 7 commits into
Open
Conversation
- Resolved frontend state bleed where all AI providers appeared as 'Configured'. - Updated GET /api/config/ai to return individual boolean statuses per provider. - Refactored 'AI Integration Settings' and 'Room Settings' dropdown to use specific provider flags. - Added Google AI Studio signup link and instructions for free-tier Gemini usage. - Verified AES-256 encryption stability and MongoDB storage for sensitive keys.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Secure AI Configuration & Fallback System empowers educators and administrators to safely manage their own AI API keys directly from the frontend dashboard, encrypting them with AES-256 before securely storing them in Cache Memory. This system operates on a smart tiered architecture: it first automatically checks for a global master key provided by the university admin to cover all teachers. If the university lacks an AI budget, it will then check for a personal API key securely saved by the individual teacher. If no paid keys are available, the dashboard provides direct guidance for the teacher to quickly generate a free Google Gemini API key. Finally, to guarantee the app never crashes during a live class, this system is backed by a robust "Clipboard Export" fallback UI that gracefully catches any API or network errors. If absolutely no keys are configured or an API fails, it provides a pre-engineered prompt so teachers can seamlessly generate their quizzes by copying and pasting the class transcript directly into free external AI web tools like ChatGPT.