From a4649fa9cc64bf5e4d13ef11c1620bfed6a71f6f Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 16 Jan 2025 15:26:15 +0700 Subject: [PATCH] chore: bump engine version to 0.1.46 --- extensions/engine-management-extension/rolldown.config.mjs | 4 ++-- extensions/inference-cortex-extension/download.bat | 2 +- extensions/inference-cortex-extension/download.sh | 2 +- extensions/inference-cortex-extension/rolldown.config.mjs | 2 +- extensions/inference-cortex-extension/src/node/index.ts | 4 +++- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/extensions/engine-management-extension/rolldown.config.mjs b/extensions/engine-management-extension/rolldown.config.mjs index b59d395d1..7e9a2d156 100644 --- a/extensions/engine-management-extension/rolldown.config.mjs +++ b/extensions/engine-management-extension/rolldown.config.mjs @@ -13,7 +13,7 @@ export default defineConfig([ NODE: JSON.stringify(`${pkgJson.name}/${pkgJson.node}`), API_URL: JSON.stringify('http://127.0.0.1:39291'), SOCKET_URL: JSON.stringify('ws://127.0.0.1:39291'), - CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.43'), + CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.46'), DEFAULT_REMOTE_ENGINES: JSON.stringify(engines), DEFAULT_REMOTE_MODELS: JSON.stringify(models), }, @@ -26,7 +26,7 @@ export default defineConfig([ file: 'dist/node/index.cjs.js', }, define: { - CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.43'), + CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.46'), }, }, { diff --git a/extensions/inference-cortex-extension/download.bat b/extensions/inference-cortex-extension/download.bat index 00e37cd19..1dfdfd449 100644 --- a/extensions/inference-cortex-extension/download.bat +++ b/extensions/inference-cortex-extension/download.bat @@ -2,7 +2,7 @@ set BIN_PATH=./bin set SHARED_PATH=./../../electron/shared set /p CORTEX_VERSION=<./bin/version.txt -set ENGINE_VERSION=0.1.43 +set ENGINE_VERSION=0.1.46 @REM Download cortex.llamacpp binaries set DOWNLOAD_URL=https://github.com/janhq/cortex.llamacpp/releases/download/v%ENGINE_VERSION%/cortex.llamacpp-%ENGINE_VERSION%-windows-amd64 diff --git a/extensions/inference-cortex-extension/download.sh b/extensions/inference-cortex-extension/download.sh index 9d35bd117..cf3ad372d 100755 --- a/extensions/inference-cortex-extension/download.sh +++ b/extensions/inference-cortex-extension/download.sh @@ -2,7 +2,7 @@ # Read CORTEX_VERSION CORTEX_VERSION=$(cat ./bin/version.txt) -ENGINE_VERSION=0.1.43 +ENGINE_VERSION=0.1.46 CORTEX_RELEASE_URL="https://github.com/janhq/cortex.cpp/releases/download" ENGINE_DOWNLOAD_URL="https://github.com/janhq/cortex.llamacpp/releases/download/v${ENGINE_VERSION}/cortex.llamacpp-${ENGINE_VERSION}" CUDA_DOWNLOAD_URL="https://github.com/janhq/cortex.llamacpp/releases/download/v${ENGINE_VERSION}" diff --git a/extensions/inference-cortex-extension/rolldown.config.mjs b/extensions/inference-cortex-extension/rolldown.config.mjs index c20bf7ed0..cebfa7190 100644 --- a/extensions/inference-cortex-extension/rolldown.config.mjs +++ b/extensions/inference-cortex-extension/rolldown.config.mjs @@ -111,7 +111,7 @@ export default defineConfig([ SETTINGS: JSON.stringify(defaultSettingJson), CORTEX_API_URL: JSON.stringify('http://127.0.0.1:39291'), CORTEX_SOCKET_URL: JSON.stringify('ws://127.0.0.1:39291'), - CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.43'), + CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.46'), }, }, { diff --git a/extensions/inference-cortex-extension/src/node/index.ts b/extensions/inference-cortex-extension/src/node/index.ts index 2638cd69d..c93da671c 100644 --- a/extensions/inference-cortex-extension/src/node/index.ts +++ b/extensions/inference-cortex-extension/src/node/index.ts @@ -74,7 +74,9 @@ async function createEngineSymlinks(binPath: string) { if (sharedLibFile.endsWith('.dll') || sharedLibFile.endsWith('.so')) { const targetDllPath = path.join(sharedPath, sharedLibFile) const symlinkDllPath = path.join(binPath, sharedLibFile) - await symlink(targetDllPath, symlinkDllPath, 'file').catch(console.error) + await symlink(targetDllPath, symlinkDllPath, 'file').catch((error) => + log(JSON.stringify(error)) + ) console.log(`Symlink created: ${targetDllPath} -> ${symlinkDllPath}`) } }