Commit Graph

3 Commits

Author SHA1 Message Date
e5db9bc425 feat(api): add model loading, unloading, and uploading endpoints
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.
2026-03-03 17:34:37 +01:00
aefdcb38de refactor(api): simplify actix_web imports and remove unused modules
- 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.
2026-03-03 00:08:58 +01:00
c1d1fc94ba vim 2026-03-02 23:06:24 +01:00