Accepted
FeedForward allows the use of AI models for providing feedback on student assignments. There are two potential sources of API keys for these models:
We need a database schema that supports both cases while ensuring proper separation of concerns.
We have decided to enhance the ai_models table with two additional fields:
owner_type: Indicates whether the model is system-wide ('system') or instructor-specific ('instructor')owner_id: For instructor-specific models, stores the instructor's emailThis allows us to: - Clearly separate system models from instructor models - Enable instructors to use their own API keys - Allow administrators to provide institution-wide models - Support filtering models based on access rights - Maintain clean separation of concerns between admin and instructor roles
The implementation includes:
1. Adding the new fields to the ai_models table schema
2. Creating a migration script to update existing databases
3. Updating model retrieval logic to filter based on ownership
4. Adding UI elements for instructors to manage their models