Skip to content

Commit

Permalink
Merge pull request #40 from SkywardAI/node-llama
Browse files Browse the repository at this point in the history
Node llama
  • Loading branch information
cbh778899 authored Oct 14, 2024
2 parents 1b4b190 + edd0efd commit cd48db7
Show file tree
Hide file tree
Showing 30 changed files with 1,973 additions and 371 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ build
*.njsproj
*.sln
*.sw?

models
8 changes: 7 additions & 1 deletion electron.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line
const { app, Menu, BrowserWindow } = require('electron');
const { app, Menu, BrowserWindow, ipcMain } = require('electron');
// eslint-disable-next-line
const path = require('path');

Expand All @@ -13,6 +13,12 @@ function createWindow() {
minWidth: 560,
minHeight: 250,
autoHideMenuBar: true,
webPreferences: {
// eslint-disable-next-line
preload: path.join(__dirname, 'preloader', 'index.js'),
nodeIntegration: true,
contextIsolation: true
}
})

if(app.isPackaged) {
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ export default [
"react/prop-types": "off"
},
},
{
files: ["preloader/**"],
rules: {
'no-undef': "off"
}
}
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@aws-sdk/credential-providers": "^3.650.0",
"@huggingface/jinja": "^0.3.0",
"@wllama/wllama": "^1.16.0",
"node-llama-cpp": "^3.1.1",
"openai": "^4.61.0",
"react": "^18.3.1",
"react-bootstrap-icons": "^1.11.4",
Expand Down
Loading

0 comments on commit cd48db7

Please sign in to comment.