This commit introduces new API endpoints for managing AI models:
- /models/{model_name}/load: Load a specific model into memory with validation
- /models/{model_name}/unload: Unload a specific model from memory
- /models/upload: Handle model file uploads via multipart form data
The implementation includes proper error handling, model existence validation, and integrates with the existing model manager system. The endpoints return structured JSON responses indicating success or failure states.
The changes also update dependencies to include actix-multipart and futures-util for handling multipart requests, and add path handling utilities for file operations.
- Removed unused imports (Scope, Arc, Mutex) from api/mod.rs
- Updated config function signature to use ServiceConfig instead of Scope
- Removed unused session_manager module from main.rs
- Cleaned up documentation comments in models and queue_service modules
- Simplified import statements across backend modules for better readability
This refactoring removes unnecessary dependencies and cleans up the codebase by eliminating unused imports and redundant documentation while maintaining all functionality.