promptfoo

Форк
0
/
package.json 
119 строк · 3.6 Кб
1
{
2
  "name": "promptfoo",
3
  "description": "LLM eval & testing toolkit",
4
  "author": "Ian Webster",
5
  "version": "0.51.0",
6
  "license": "MIT",
7
  "type": "commonjs",
8
  "repository": "promptfoo/promptfoo",
9
  "main": "dist/src/index.js",
10
  "exports": {
11
    ".": {
12
      "import": "./dist/src/index.js",
13
      "require": "./dist/src/index.js"
14
    }
15
  },
16
  "types": "dist/src/index.d.ts",
17
  "typings": "dist/src/index.d.ts",
18
  "files": [
19
    "dist"
20
  ],
21
  "engines": {
22
    "node": ">=16"
23
  },
24
  "bin": {
25
    "promptfoo": "dist/src/main.js"
26
  },
27
  "scripts": {
28
    "tsc": "tsc",
29
    "local": "ts-node --esm --files src/main.ts",
30
    "local:web": "cd src/web/nextui && npm run dev",
31
    "install:nextui": "cd src/web/nextui && npm install",
32
    "build:clean": "rm -rf dist",
33
    "build:nextui": "cd src/web/nextui && npm run build && { [ -z \"$NEXT_PUBLIC_PROMPTFOO_BUILD_STANDALONE_SERVER\" ] && cp -r out/ ../../../dist/src/web/nextui; } || true",
34
    "build:watch": "tsc --watch",
35
    "build": "tsc && cp src/*.html dist/src && cp src/python/wrapper.py dist/src/python && cp -r drizzle/ dist/ && npm run build:nextui && chmod +x dist/src/main.js",
36
    "prepare": "npm run install:nextui && npm run build:clean && npm run build",
37
    "test": "jest",
38
    "test:watch": "jest --watch",
39
    "format": "prettier -w .",
40
    "db:migrate": "npx tsx src/migrate.ts",
41
    "db:generate": "npx drizzle-kit generate:sqlite",
42
    "audit:fix": "npm audit fix && cd src/web/nextui && npm audit fix && cd ../../site && npm audit fix"
43
  },
44
  "peerDependencies": {
45
    "@aws-sdk/client-bedrock-runtime": "^3.458.0",
46
    "@azure/identity": "^4.0.0",
47
    "@azure/openai-assistants": "^1.0.0-beta.5",
48
    "google-auth-library": "^9.7.0"
49
  },
50
  "devDependencies": {
51
    "@aws-sdk/client-bedrock-runtime": "^3.458.0",
52
    "@azure/identity": "^4.0.0",
53
    "@types/async": "^3.2.20",
54
    "@types/better-sqlite3": "^7.6.8",
55
    "@types/cache-manager": "^4.0.2",
56
    "@types/cache-manager-fs-hash": "^0.0.1",
57
    "@types/cli-progress": "^3.11.0",
58
    "@types/compression": "^1.7.2",
59
    "@types/cors": "^2.8.13",
60
    "@types/debounce": "^1.2.1",
61
    "@types/express": "^4.17.17",
62
    "@types/glob": "^8.1.0",
63
    "@types/jest": "^29.5.1",
64
    "@types/js-yaml": "^4.0.5",
65
    "@types/node-fetch": "^2.6.4",
66
    "@types/nunjucks": "^3.2.2",
67
    "@types/opener": "^1.4.0",
68
    "@types/semver": "^7.5.0",
69
    "@types/uuid": "^9.0.2",
70
    "babel-jest": "^29.5.0",
71
    "drizzle-kit": "^0.20.13",
72
    "jest": "^29.5.0",
73
    "jest-watch-typeahead": "^2.2.2",
74
    "next": "^13.4.13",
75
    "prettier": "^2.8.8",
76
    "ts-jest": "^29.1.0",
77
    "ts-node": "^10.9.1",
78
    "typescript": "^5.0.4"
79
  },
80
  "dependencies": {
81
    "@anthropic-ai/sdk": "^0.20.1",
82
    "@apidevtools/json-schema-ref-parser": "^10.1.0",
83
    "ajv": "^8.12.0",
84
    "ajv-formats": "^2.1.1",
85
    "async": "^3.2.4",
86
    "better-sqlite3": "^9.3.0",
87
    "cache-manager": "^4.1.0",
88
    "cache-manager-fs-hash": "^1.0.0",
89
    "chalk": "^4.1.2",
90
    "chokidar": "^3.5.3",
91
    "cli-progress": "^3.12.0",
92
    "cli-table3": "^0.6.3",
93
    "commander": "^10.0.1",
94
    "compression": "^1.7.4",
95
    "cors": "^2.8.5",
96
    "csv-parse": "^5.3.8",
97
    "csv-stringify": "^6.3.2",
98
    "debounce": "^1.2.1",
99
    "dotenv": "^16.4.5",
100
    "drizzle-orm": "^0.29.3",
101
    "express": "^4.18.2",
102
    "fastest-levenshtein": "^1.0.16",
103
    "glob": "^10.2.6",
104
    "js-yaml": "^4.1.0",
105
    "node-fetch": "^2.6.7",
106
    "nunjucks": "^3.2.4",
107
    "openai": "^4.19.0",
108
    "opener": "^1.5.2",
109
    "proxy-agent": "^6.3.1",
110
    "python-shell": "^5.0.0",
111
    "replicate": "^0.27.1",
112
    "rouge": "^1.0.3",
113
    "semver": "^7.5.3",
114
    "socket.io": "^4.6.1",
115
    "tiny-invariant": "^1.3.1",
116
    "uuid": "^9.0.0",
117
    "winston": "^3.8.2"
118
  }
119
}
120

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.