@@ -1,5 +1,10 @@
|
||||
import { qvacSdk } from '../daemon/qvac-master.js';
|
||||
const sdk = await qvacSdk();
|
||||
let sdk;
|
||||
try {
|
||||
sdk = await qvacSdk();
|
||||
} catch (error) {
|
||||
throw new Error(`Voice runtime could not initialize native QVAC plugins. Install libvulkan1 and a Vulkan driver on the build host. ${error.message}`, { cause: error });
|
||||
}
|
||||
for (const type of ['llamacpp-completion', 'whispercpp-transcription', 'tts-ggml']) {
|
||||
if (!sdk.hasPlugin(type)) throw new Error(`Release is missing registered plugin: ${type}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user