feat: Enhance CodexLens with GPU support and semantic status improvements

- Added accelerator and providers fields to SemanticStatus interface.
- Updated checkSemanticStatus function to retrieve ONNX providers and accelerator type.
- Introduced detectGpuSupport function to identify available GPU modes (CUDA, DirectML).
- Modified installSemantic function to support GPU acceleration modes and clean up ONNX Runtime installations.
- Updated package requirements in PKG-INFO for semantic-gpu and semantic-directml extras.
- Added new source files for GPU support and enrichment functionalities.
- Updated tests to cover new features and ensure comprehensive testing.
This commit is contained in:
catlog22
2025-12-22 17:42:26 +08:00
parent 72f24bf535
commit acdfbb4644
9 changed files with 1215 additions and 98 deletions

View File

@@ -15,4 +15,17 @@ tiktoken>=0.5.0
[semantic]
numpy>=1.24
fastembed>=0.2
fastembed>=0.5
hnswlib>=0.8.0
[semantic-directml]
numpy>=1.24
fastembed>=0.5
hnswlib>=0.8.0
onnxruntime-directml>=1.18.0
[semantic-gpu]
numpy>=1.24
fastembed>=0.5
hnswlib>=0.8.0
onnxruntime-gpu>=1.18.0