whisper install fix
This commit is contained in:
		
							parent
							
								
									9359b32c01
								
							
						
					
					
						commit
						7f98acb5e3
					
				@ -7,9 +7,7 @@ const ollamaService = require('../features/common/services/ollamaService');
 | 
			
		||||
const modelStateService = require('../features/common/services/modelStateService');
 | 
			
		||||
const shortcutsService = require('../features/shortcuts/shortcutsService');
 | 
			
		||||
const presetRepository = require('../features/common/repositories/preset');
 | 
			
		||||
const windowBridge = require('./windowBridge');
 | 
			
		||||
const localAIManager = require('../features/common/services/localAIManager');
 | 
			
		||||
 | 
			
		||||
const askService = require('../features/ask/askService');
 | 
			
		||||
const listenService = require('../features/listen/listenService');
 | 
			
		||||
const permissionService = require('../features/common/services/permissionService');
 | 
			
		||||
 | 
			
		||||
@ -426,7 +426,7 @@ class ModelStateService extends EventEmitter {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    setFirebaseVirtualKey(virtualKey) {
 | 
			
		||||
    async setFirebaseVirtualKey(virtualKey) {
 | 
			
		||||
        console.log(`[ModelStateService] Setting Firebase virtual key (for openai-glass).`);
 | 
			
		||||
        this.state.apiKeys['openai-glass'] = virtualKey;
 | 
			
		||||
        
 | 
			
		||||
@ -448,8 +448,12 @@ class ModelStateService extends EventEmitter {
 | 
			
		||||
            this._autoSelectAvailableModels();
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        this._saveState();
 | 
			
		||||
        await this._saveState();
 | 
			
		||||
        this._logCurrentSelection();
 | 
			
		||||
        
 | 
			
		||||
        // Emit events to update UI
 | 
			
		||||
        this.emit('state-updated', this.state);
 | 
			
		||||
        this.emit('settings-updated');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async setApiKey(provider, key) {
 | 
			
		||||
 | 
			
		||||
@ -643,7 +643,7 @@ class WhisperService extends EventEmitter {
 | 
			
		||||
    async installWindows() {
 | 
			
		||||
        console.log('[WhisperService] Installing Whisper on Windows...');
 | 
			
		||||
        const version = 'v1.7.6';
 | 
			
		||||
        const binaryUrl = `https://github.com/ggerganov/whisper.cpp/releases/download/${version}/whisper-cpp-${version}-win-x64.zip`;
 | 
			
		||||
        const binaryUrl = `https://github.com/ggml-org/whisper.cpp/releases/download/${version}/whisper-cpp-${version}-win-x64.zip`;
 | 
			
		||||
        const tempFile = path.join(this.tempDir, 'whisper-binary.zip');
 | 
			
		||||
        
 | 
			
		||||
        try {
 | 
			
		||||
@ -757,7 +757,7 @@ class WhisperService extends EventEmitter {
 | 
			
		||||
    async installLinux() {
 | 
			
		||||
        console.log('[WhisperService] Installing Whisper on Linux...');
 | 
			
		||||
        const version = 'v1.7.6';
 | 
			
		||||
        const binaryUrl = `https://github.com/ggerganov/whisper.cpp/releases/download/${version}/whisper-cpp-${version}-linux-x64.tar.gz`;
 | 
			
		||||
        const binaryUrl = `https://github.com/ggml-org/whisper.cpp/releases/download/${version}/whisper-cpp-${version}-linux-x64.tar.gz`;
 | 
			
		||||
        const tempFile = path.join(this.tempDir, 'whisper-binary.tar.gz');
 | 
			
		||||
        
 | 
			
		||||
        try {
 | 
			
		||||
 | 
			
		||||
@ -956,7 +956,8 @@ export class SettingsView extends LitElement {
 | 
			
		||||
                this.firebaseUser = null;
 | 
			
		||||
            }
 | 
			
		||||
            this.loadAutoUpdateSetting();
 | 
			
		||||
            this.requestUpdate();
 | 
			
		||||
            // Reload model settings when user state changes (Firebase login/logout)
 | 
			
		||||
            this.loadInitialData();
 | 
			
		||||
        };
 | 
			
		||||
        
 | 
			
		||||
        this._settingsUpdatedListener = (event, settings) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user