fix: pathname file install BE
This commit is contained in:
parent
e80a865def
commit
18114c0a15
@ -357,12 +357,9 @@ function ProviderDetail() {
|
|||||||
|
|
||||||
if (selectedFile && typeof selectedFile === 'string') {
|
if (selectedFile && typeof selectedFile === 'string') {
|
||||||
// Process the file path: replace spaces with dashes and convert to lowercase
|
// 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
|
// 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
|
// Extract filename from the selected file path and replace spaces with dashes
|
||||||
const fileName = (
|
const fileName = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user