Merge pull request #6464 from menloresearch/fix/pathname-install-be

fix: pathname file install BE
This commit is contained in:
Faisal Amir 2025-09-16 10:14:02 +07:00 committed by GitHub
commit da2f790f25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -41,9 +41,13 @@ const BackendUpdater = () => {
}) })
}, [updateState]) }, [updateState])
// Don't show if user clicked remind me later or auto update is enabled // Don't show if user clicked remind me later
if (backendUpdateState.remindMeLater || updateState.autoUpdateEnabled) if (backendUpdateState.remindMeLater) {
console.log('BackendUpdater: Not showing notification due to:', {
remindMeLater: backendUpdateState.remindMeLater,
})
return null return null
}
return ( return (
<> <>

View File

@ -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 = (