fix: pathname file install BE

This commit is contained in:
Faisal Amir 2025-09-15 18:05:11 +07:00
parent e80a865def
commit 18114c0a15

View File

@ -357,12 +357,9 @@ function ProviderDetail() {
if (selectedFile && typeof selectedFile === 'string') {
// Process the file path: replace spaces with dashes and convert to lowercase
const processedFilePath = selectedFile
.replace(/\s+/g, '-')
.toLowerCase()
// Install the backend using the llamacpp extension
await installBackend(processedFilePath)
await installBackend(selectedFile)
// Extract filename from the selected file path and replace spaces with dashes
const fileName = (