Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node llama #40

Merged
merged 23 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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