mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-08-19 20:00:11 +02:00
* WIP converted all sqlite models into prisma calls * modify db setup and fix ApiKey model calls in admin.js * renaming function params to be consistent * converted adminEndpoints to utilize prisma orm * converted chatEndpoints to utilize prisma orm * converted inviteEndpoints to utilize prisma orm * converted systemEndpoints to utilize prisma orm * converted workspaceEndpoints to utilize prisma orm * converting sql queries to prisma calls * fixed default param bug for orderBy and limit * fixed typo for workspace chats * fixed order of deletion to account for sql relations * fix invite CRUD and workspace management CRUD * fixed CRUD for api keys * created prisma setup scripts/docs for understanding how to use prisma * prisma dependency change * removing unneeded console.logs * removing unneeded sql escape function * linting and creating migration script * migration from depreciated sqlite script update * removing unneeded migrations in prisma folder * create backup of old sqlite db and use transactions to ensure all operations complete successfully * adding migrations to gitignore * updated PRISMA.md docs for info on how to use sqlite migration script * comment changes * adding back migrations folder to repo * Reviewing SQL and prisma integraiton on fresh repo * update inline key replacement * ensure migration script executes and maps foreign_keys regardless of db ordering * run migration endpoint * support new prisma backend * bump version * change migration call --------- Co-authored-by: timothycarambat <rambat1010@gmail.com>
62 lines
1.8 KiB
JSON
62 lines
1.8 KiB
JSON
{
|
|
"name": "anything-llm-server",
|
|
"version": "0.2.0",
|
|
"description": "Server endpoints to process or create content for chatting",
|
|
"main": "index.js",
|
|
"author": "Timothy Carambat (Mintplex Labs)",
|
|
"license": "MIT",
|
|
"private": false,
|
|
"engines": {
|
|
"node": ">=18.12.1"
|
|
},
|
|
"scripts": {
|
|
"dev": "NODE_ENV=development nodemon --ignore documents --ignore vector-cache --ignore storage --ignore swagger --trace-warnings index.js",
|
|
"start": "NODE_ENV=production node index.js",
|
|
"lint": "yarn prettier --write ./endpoints ./models ./utils index.js",
|
|
"swagger": "node ./swagger/init.js",
|
|
"sqlite:migrate": "cd ./utils/prisma && node migrateFromSqlite.js"
|
|
},
|
|
"prisma": {
|
|
"seed": "node prisma/seed.js"
|
|
},
|
|
"dependencies": {
|
|
"@azure/openai": "^1.0.0-beta.3",
|
|
"@googleapis/youtube": "^9.0.0",
|
|
"@pinecone-database/pinecone": "^0.1.6",
|
|
"@prisma/client": "5.3.0",
|
|
"@qdrant/js-client-rest": "^1.4.0",
|
|
"archiver": "^5.3.1",
|
|
"bcrypt": "^5.1.0",
|
|
"body-parser": "^1.20.2",
|
|
"check-disk-space": "^3.4.0",
|
|
"chromadb": "^1.5.2",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.0.3",
|
|
"express": "^4.18.2",
|
|
"extract-zip": "^2.0.1",
|
|
"graphql": "^16.7.1",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"langchain": "^0.0.90",
|
|
"mime": "^3.0.0",
|
|
"moment": "^2.29.4",
|
|
"multer": "^1.4.5-lts.1",
|
|
"openai": "^3.2.1",
|
|
"pinecone-client": "^1.1.0",
|
|
"posthog-node": "^3.1.1",
|
|
"prisma": "^5.3.1",
|
|
"serve-index": "^1.9.1",
|
|
"slugify": "^1.6.6",
|
|
"sqlite": "^4.2.1",
|
|
"sqlite3": "^5.1.6",
|
|
"swagger-autogen": "^2.23.5",
|
|
"swagger-ui-express": "^5.0.0",
|
|
"uuid": "^9.0.0",
|
|
"uuid-apikey": "^1.5.3",
|
|
"vectordb": "0.1.12",
|
|
"weaviate-ts-client": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^2.0.22",
|
|
"prettier": "^2.4.1"
|
|
}
|
|
} |