Skip to content
  1. Jun 03, 2026
  2. May 11, 2026
  3. May 05, 2026
  4. Mar 20, 2026
  5. Mar 19, 2026
    • Your Name's avatar
      Fix architecture: Proper separation of Model Manager and Cache responsibilities · 7788ce85
      Your Name authored
      - **Model Manager**: Central coordinator for model lifecycle, alias resolution, loading/unloading
      - **Cache Module**: Handles downloading, caching, and storage of models
      - **API Modules**: Request models from Model Manager (not directly from cache)
      
      Key changes:
      - Removed resolve_and_load_model() from cache - moved logic to Model Manager
      - Model Manager now downloads/caches models at startup when registered
      - API modules use multi_model_manager.load_model() instead of cache functions
      - Proper separation: Cache=storage, Manager=lifecycle coordination, APIs=requests
      
      This fixes the incorrect direct API-to-cache coupling and establishes proper architectural boundaries.
      7788ce85
    • Your Name's avatar
      Implement intelligent model loading for local files, URLs, and HF IDs · bff24350
      Your Name authored
      - Updated load_model() to handle three input types:
        1. Local files: Use directly without caching
        2. URLs: Download to cache if not cached, then use
        3. HF model IDs: Download via HF API if not cached, then use
      - Updated get_cached_model_path() to validate local files
      - Enhanced module documentation to reflect new capabilities
      - All model types (text, image, audio, etc.) can now use any input type
      bff24350
    • Your Name's avatar
      Fix --remove-model to remove entire HF repository directories · 3e3067a9
      Your Name authored
      - Updated remove_cached_model() to remove entire repo directories when matching by repo_id
      - Previously only removed individual files, now removes complete repository cache
      - Handles both files and directories in removal process
      - More thorough cleanup of HuggingFace cached models
      3e3067a9
    • Your Name's avatar
      Centralize all model loading/downloading logic in codai.models.cache · c93d4a6b
      Your Name authored
      - Added unified load_model() function as main entry point for model loading
      - Updated WhisperServerManager to use centralized load_model() instead of inline logic
      - Removed proxy methods from MultiModelManager - use cache module directly
      - All cache functions now work seamlessly with both GGUF and HF model caches
      - Improved separation of concerns: cache module handles all caching/downloading
      c93d4a6b
    • Your Name's avatar
      Unify cache functions to work with both GGUF and HuggingFace caches · 82735770
      Your Name authored
      - Updated get_cached_model_path() to check both coderai and HF caches
      - Updated download_model() to handle both URLs and HF model IDs automatically
      - Made download_huggingface_model() consistent with unified API
      - Updated module docstring to reflect unified cache functionality
      - All cache functions now work seamlessly with both cache types
      82735770
    • Your Name's avatar
      Fix --remove-model to work with HuggingFace repo IDs · 52eb402a
      Your Name authored
      - Updated remove_cached_model() to search by repo_id for HuggingFace models
      - Moved cache management options (--list-cached-models, --remove-model, --remove-all-models) to run before heavy imports
      - Improved cache operations to use centralized functions in codai.models.cache module
      - Fixed model removal to work with full repo IDs like 'TheBloke/Llama-2-7B-GGUF'
      52eb402a
    • Your Name's avatar
      Refactor --list-cached-models to use centralized cache module function · e509279a
      Your Name authored
      - Add list_cached_models_info() function to codai.models.cache module
      - Move cache listing logic from main.py to the cache module
      - Update main.py to use the centralized function early (before heavy imports)
      - Improves code organization and avoids unnecessary imports for --list-cached-models
      e509279a
    • Your Name's avatar
      Fix: Correct HuggingFace cache directory detection · 73c81b2f
      Your Name authored
      - Updated get_all_cache_dirs() to properly find HuggingFace hub directory
      - Now checks for ~/.cache/huggingface/hub/ instead of just ~/.cache/huggingface/
      - This fixes --list-cached-models not showing HuggingFace cached models
      73c81b2f
  6. Mar 16, 2026
    • Your Name's avatar
      Create codai.models.cache module for model caching · ae1820e5
      Your Name authored
      Created codai/models/cache/__init__.py with:
      - get_model_cache_dir()
      - get_all_cache_dirs()
      - get_cached_model_path()
      - is_huggingface_model_id()
      - download_huggingface_model()
      - download_model()
      - list_cached_models()
      - remove_cached_model()
      - remove_all_cached_models()
      
      This extracts the cache-related functionality into a separate module.
      ae1820e5
Loading