Merge pull request #6464 from menloresearch/fix/pathname-install-be
fix: pathname file install BE
This commit is contained in:
commit
da2f790f25
@ -41,9 +41,13 @@ const BackendUpdater = () => {
|
||||
})
|
||||
}, [updateState])
|
||||
|
||||
// Don't show if user clicked remind me later or auto update is enabled
|
||||
if (backendUpdateState.remindMeLater || updateState.autoUpdateEnabled)
|
||||
// Don't show if user clicked remind me later
|
||||
if (backendUpdateState.remindMeLater) {
|
||||
console.log('BackendUpdater: Not showing notification due to:', {
|
||||
remindMeLater: backendUpdateState.remindMeLater,
|
||||
})
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -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 = (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user