Skip to content

AI Configuration & Fallback System - #89

Open
K-Sai-2005 wants to merge 7 commits into
vicharanashala:mainfrom
K-Sai-2005:New-Feature
Open

AI Configuration & Fallback System#89
K-Sai-2005 wants to merge 7 commits into
vicharanashala:mainfrom
K-Sai-2005:New-Feature

Conversation

@K-Sai-2005

Copy link
Copy Markdown

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.

Screenshot 2026-07-11 201439 Screenshot 2026-07-11 201807

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant