mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00

This commit introduces a new openai integration in the project, along with necessary changes in the database schema. The package.json file has been updated to include the openai package, and the prisma/postgresql-schema.prisma file has been modified to include OpenaiCreds, OpenaiAssistant, OpenaiAssistantThread, and OpenaiChatCompletion models. These models will handle the integration with OpenAI's API for various tasks. Some of the key changes include: - Addition of OpenaiCreds model to manage API credentials. - Addition of OpenaiAssistant model to handle OpenAI assistant instances. - Addition of OpenaiAssistantThread model to manage OpenAI assistant threads. - Addition of OpenaiChatCompletion model to handle OpenAI chat completions. These changes will enable seamless integration with OpenAI's API and allow for better management of assistant instances, threads, and chat completions.
121 lines
3.7 KiB
JSON
121 lines
3.7 KiB
JSON
{
|
|
"name": "evolution-api",
|
|
"version": "2.0.2-beta",
|
|
"description": "Rest api for communication with WhatsApp",
|
|
"main": "./dist/src/main.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "ts-node --files --transpile-only ./src/main.ts",
|
|
"start:prod": "node dist/src/main",
|
|
"dev:server": "clear && tsnd --files --transpile-only --respawn --ignore-watch node_modules ./src/main.ts",
|
|
"test": "clear && tsnd --files --transpile-only --respawn --ignore-watch node_modules ./test/all.test.ts",
|
|
"lint": "eslint --fix --ext .ts src",
|
|
"db:migrate:postgres": "npx prisma migrate dev --name init --schema ./prisma/postgresql-schema.prisma",
|
|
"db:migrate:mysql": "npx prisma migrate dev --name init --schema ./prisma/mysql-schema.prisma",
|
|
"db:studio:postgres": "npx prisma studio --schema ./prisma/postgresql-schema.prisma",
|
|
"db:studio:mysql": "npx prisma studio --schema ./prisma/mysql-schema.prisma"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/EvolutionAPI/evolution-api.git"
|
|
},
|
|
"keywords": [
|
|
"chat",
|
|
"communication",
|
|
"message",
|
|
"send message",
|
|
"whatsapp",
|
|
"js-whatsapp",
|
|
"whatsapp-api",
|
|
"whatsapp-web",
|
|
"whatsapp",
|
|
"whatsapp-chat",
|
|
"whatsapp-group",
|
|
"automation",
|
|
"multi-device",
|
|
"bot"
|
|
],
|
|
"author": {
|
|
"name": "Davidson Gomes",
|
|
"email": "contato@agenciadgcode.com"
|
|
},
|
|
"license": "GPL-3.0",
|
|
"bugs": {
|
|
"url": "https://github.com/EvolutionAPI/evolution-api/issues"
|
|
},
|
|
"homepage": "https://github.com/EvolutionAPI/evolution-api#readme",
|
|
"dependencies": {
|
|
"@adiwajshing/keyed-db": "^0.2.4",
|
|
"@aws-sdk/client-sqs": "^3.569.0",
|
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
"@figuro/chatwoot-sdk": "^1.1.16",
|
|
"@hapi/boom": "^10.0.1",
|
|
"@prisma/client": "^5.15.0",
|
|
"@sentry/node": "^7.59.2",
|
|
"amqplib": "^0.10.3",
|
|
"axios": "^1.6.5",
|
|
"baileys": "github:EvolutionAPI/Baileys",
|
|
"class-validator": "^0.14.1",
|
|
"compression": "^1.7.4",
|
|
"cors": "^2.8.5",
|
|
"cross-env": "^7.0.3",
|
|
"dayjs": "^1.11.7",
|
|
"dotenv": "^16.4.5",
|
|
"eventemitter2": "^6.4.9",
|
|
"evolution-manager": "^0.4.13",
|
|
"exiftool-vendored": "^22.0.0",
|
|
"express": "^4.18.2",
|
|
"express-async-errors": "^3.1.1",
|
|
"fluent-ffmpeg": "^2.1.2",
|
|
"form-data": "^4.0.0",
|
|
"hbs": "^4.2.0",
|
|
"https-proxy-agent": "^7.0.2",
|
|
"i18next": "^23.7.19",
|
|
"jimp": "^0.16.13",
|
|
"join": "^3.0.0",
|
|
"js-yaml": "^4.1.0",
|
|
"jsonschema": "^1.4.1",
|
|
"link-preview-js": "^3.0.4",
|
|
"minio": "^8.0.1",
|
|
"node-cache": "^5.1.2",
|
|
"node-mime-types": "^1.1.0",
|
|
"node-windows": "^1.0.0-beta.8",
|
|
"openai": "^4.52.7",
|
|
"parse-bmfont-xml": "^1.1.4",
|
|
"pg": "^8.11.3",
|
|
"pino": "^8.11.0",
|
|
"prisma": "^5.15.0",
|
|
"qrcode": "^1.5.1",
|
|
"qrcode-terminal": "^0.12.0",
|
|
"redis": "^4.6.5",
|
|
"sharp": "^0.32.2",
|
|
"socket.io": "^4.7.1",
|
|
"socks-proxy-agent": "^8.0.1",
|
|
"uuid": "^9.0.0",
|
|
"xml2js": "^0.6.2",
|
|
"yamljs": "^0.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/compression": "^1.7.2",
|
|
"@types/cors": "^2.8.13",
|
|
"@types/express": "^4.17.17",
|
|
"@types/js-yaml": "^4.0.5",
|
|
"@types/mime-types": "^2.1.1",
|
|
"@types/node": "^18.15.11",
|
|
"@types/node-windows": "^0.1.2",
|
|
"@types/qrcode": "^1.5.0",
|
|
"@types/qrcode-terminal": "^0.12.0",
|
|
"@types/uuid": "^8.3.4",
|
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
"@typescript-eslint/parser": "^5.62.0",
|
|
"eslint": "^8.45.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
"prettier": "^2.8.8",
|
|
"ts-node-dev": "^2.0.0",
|
|
"typescript": "^4.9.5"
|
|
}
|
|
}
|