mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
4e55940edf
* feat(typescript)/dynamic template (#1287) * remove packaged yarn * prompt templates update wip * prompt template update * system prompt template, update types, remove embed promises, cleanup * support both snakecased and camelcased prompt context * fix #1277 libbert, libfalcon and libreplit libs not being moved into the right folder after build * added support for modelConfigFile param, allowing the user to specify a local file instead of downloading the remote models.json. added a warning message if code fails to load a model config. included prompt context docs by amogus. * snakecase warning, put logic for loading local models.json into listModels, added constant for the default remote model list url, test improvements, simpler hasOwnProperty call * add DEFAULT_PROMPT_CONTEXT, export new constants * add md5sum testcase and fix constants export * update types * throw if attempting to list models without a source * rebuild docs * fix download logging undefined url, toFixed typo, pass config filesize in for future progress report * added overload with union types * bump to 2.2.0, remove alpha * code speling --------- Co-authored-by: Andreas Obersteiner <8959303+iimez@users.noreply.github.com>
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"name": "gpt4all",
|
|
"version": "2.2.0",
|
|
"packageManager": "yarn@3.6.1",
|
|
"main": "src/gpt4all.js",
|
|
"repository": "nomic-ai/gpt4all",
|
|
"scripts": {
|
|
"install": "node-gyp-build",
|
|
"test": "jest",
|
|
"build:backend": "node scripts/build.js",
|
|
"build": "node-gyp-build",
|
|
"predocs:build": "node scripts/docs.js",
|
|
"docs:build": "documentation readme ./src/gpt4all.d.ts --parse-extension js d.ts --format md --section \"API Reference\" --readme-file ../python/docs/gpt4all_typescript.md",
|
|
"postdocs:build": "documentation readme ./src/gpt4all.d.ts --parse-extension js d.ts --format md --section \"API Reference\" --readme-file README.md"
|
|
},
|
|
"files": [
|
|
"src/**/*",
|
|
"runtimes/**/*",
|
|
"binding.gyp",
|
|
"prebuilds/**/*",
|
|
"*.h",
|
|
"*.cc",
|
|
"gpt4all-backend/**/*"
|
|
],
|
|
"dependencies": {
|
|
"md5-file": "^5.0.0",
|
|
"mkdirp": "^3.0.1",
|
|
"node-addon-api": "^6.1.0",
|
|
"node-gyp-build": "^4.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.1.5",
|
|
"documentation": "^14.0.2",
|
|
"jest": "^29.5.0",
|
|
"prebuildify": "^5.0.1",
|
|
"prettier": "^2.8.8"
|
|
},
|
|
"optionalDependencies": {
|
|
"node-gyp": "9.x.x"
|
|
},
|
|
"engines": {
|
|
"node": ">= 18.x.x"
|
|
},
|
|
"prettier": {
|
|
"endOfLine": "lf",
|
|
"tabWidth": 4
|
|
},
|
|
"jest": {
|
|
"verbose": true
|
|
}
|
|
}
|