Skip to content

Commit

Permalink
chore: update version env
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Dec 26, 2024
1 parent 5d708a5 commit a1fc178
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export {}
declare global {
declare const API_URL: string
declare const NODE: string
declare const CORTEX_ENGINE_VERSION: string
declare const SOCKET_URL: string

interface Core {
Expand Down
3 changes: 1 addition & 2 deletions extensions/engine-management-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Engines,
EngineVariant,
EngineReleased,
systemInformation,
} from '@janhq/core'
import ky, { HTTPError } from 'ky'
import PQueue from 'p-queue'
Expand All @@ -28,7 +27,7 @@ export default class JSONEngineManagementExtension extends EngineManagementExten
if (error instanceof HTTPError && error.response.status === 400) {
await this.setDefaultEngineVariant(InferenceEngine.cortex_llamacpp, {
variant: 'mac-arm64',
version: '0.1.42',
version: `${CORTEX_ENGINE_VERSION}`,
})
} else {
console.error('An unexpected error occurred:', error)
Expand Down
2 changes: 1 addition & 1 deletion extensions/engine-management-extension/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const webpack = require('webpack')
const packageJson = require('./package.json')

module.exports = {
experiments: { outputModule: true },
Expand All @@ -22,6 +21,7 @@ module.exports = {
new webpack.DefinePlugin({
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.42'),
}),
],
resolve: {
Expand Down

0 comments on commit a1fc178

Please sign in to comment.