Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

package.json 3.9 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
  1. {
  2. "name": "promptfoo",
  3. "description": "LLM eval & testing toolkit",
  4. "author": "Ian Webster",
  5. "version": "0.58.1",
  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. "@ibm-generative-ai/node-sdk": "^2.0.6",
  49. "google-auth-library": "^9.7.0",
  50. "googleapis": "^134.0.0",
  51. "langfuse": "^3.7.0"
  52. },
  53. "devDependencies": {
  54. "@aws-sdk/client-bedrock-runtime": "^3.458.0",
  55. "@azure/identity": "^4.0.0",
  56. "@types/async": "^3.2.20",
  57. "@types/better-sqlite3": "^7.6.8",
  58. "@types/cache-manager": "^4.0.2",
  59. "@types/cache-manager-fs-hash": "^0.0.1",
  60. "@types/cli-progress": "^3.11.0",
  61. "@types/compression": "^1.7.2",
  62. "@types/cors": "^2.8.13",
  63. "@types/debounce": "^1.2.1",
  64. "@types/express": "^4.17.17",
  65. "@types/glob": "^8.1.0",
  66. "@types/jest": "^29.5.1",
  67. "@types/js-yaml": "^4.0.5",
  68. "@types/node-fetch": "^2.6.4",
  69. "@types/nunjucks": "^3.2.2",
  70. "@types/opener": "^1.4.0",
  71. "@types/semver": "^7.5.0",
  72. "@types/uuid": "^9.0.2",
  73. "babel-jest": "^29.5.0",
  74. "drizzle-kit": "^0.20.13",
  75. "jest": "^29.5.0",
  76. "jest-watch-typeahead": "^2.2.2",
  77. "next": "^13.4.13",
  78. "prettier": "^2.8.8",
  79. "ts-jest": "^29.1.0",
  80. "ts-node": "^10.9.1",
  81. "typescript": "^5.0.4"
  82. },
  83. "dependencies": {
  84. "@anthropic-ai/sdk": "^0.20.1",
  85. "@apidevtools/json-schema-ref-parser": "^10.1.0",
  86. "ajv": "^8.12.0",
  87. "ajv-formats": "^2.1.1",
  88. "async": "^3.2.4",
  89. "better-sqlite3": "^9.3.0",
  90. "cache-manager": "^4.1.0",
  91. "cache-manager-fs-hash": "^1.0.0",
  92. "chalk": "^4.1.2",
  93. "chokidar": "^3.5.3",
  94. "cli-progress": "^3.12.0",
  95. "cli-table3": "^0.6.3",
  96. "commander": "^10.0.1",
  97. "compression": "^1.7.4",
  98. "cors": "^2.8.5",
  99. "csv-parse": "^5.3.8",
  100. "csv-stringify": "^6.3.2",
  101. "debounce": "^1.2.1",
  102. "dotenv": "^16.4.5",
  103. "drizzle-orm": "^0.29.3",
  104. "express": "^4.18.2",
  105. "fast-deep-equal": "^3.1.3",
  106. "fastest-levenshtein": "^1.0.16",
  107. "glob": "^10.2.6",
  108. "js-yaml": "^4.1.0",
  109. "mathjs": "^12.4.1",
  110. "node-fetch": "^2.6.7",
  111. "nunjucks": "^3.2.4",
  112. "openai": "^4.38.5",
  113. "opener": "^1.5.2",
  114. "proxy-agent": "^6.3.1",
  115. "python-shell": "^5.0.0",
  116. "replicate": "^0.27.1",
  117. "rouge": "git+https://github.com/kenlimmj/rouge.git#f35111b599aca55f1d4dc1d4a3d15e28e7f7c55f",
  118. "semver": "^7.5.3",
  119. "socket.io": "^4.6.1",
  120. "tiny-invariant": "^1.3.1",
  121. "uuid": "^9.0.0",
  122. "winston": "^3.8.2"
  123. }
  124. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...