-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
117 lines (117 loc) · 4.53 KB
/
Copy pathpackage.json
File metadata and controls
117 lines (117 loc) · 4.53 KB
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
{
"name": "@loonylabs/llm-middleware",
"version": "2.31.0",
"description": "Complete middleware infrastructure for LLM-based backends with multi-provider support (Ollama, Anthropic, Google Gemini & Vertex AI, Requesty, AWS Bedrock, Azure OpenAI / Foundry, Inceptron)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "ts-node src/examples/simple-chat/index.ts",
"dev": "ts-node-dev --inspect --respawn src/examples/simple-chat/index.ts",
"build": "tsc",
"test": "npm run test:unit",
"test:all": "npm run test:unit && npm run test:basic && npm run test:integration && npm run test:integration:parameters && npm run test:robustness",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"test:unit:coverage": "jest --coverage",
"test:basic": "node tests/basic/test-middleware.js",
"test:integration": "node tests/integration/test-flat-formatter.js",
"test:integration:parameters": "node tests/integration/test-parameter-limits.js",
"test:robustness": "node tests/robustness/test-json-handling.js",
"test:e2e": "node tests/e2e/test-workflow.js",
"test:manual:smoke": "ts-node tests/manual/smoke-test.ts",
"test:manual:verify-params": "node tests/manual/verify-parameters.js",
"test:manual:formatter-demo": "ts-node tests/manual/request-formatter-demo.ts",
"test:manual:story-test": "ts-node tests/manual/story-generator-test.ts",
"test:provider:ollama": "TEST_PROVIDER=ollama ts-node tests/manual/provider-smoke-test.ts",
"test:provider:anthropic": "TEST_PROVIDER=anthropic ts-node tests/manual/provider-smoke-test.ts",
"test:provider:requesty": "TEST_PROVIDER=requesty ts-node tests/manual/provider-smoke-test.ts",
"test:provider:vertex": "ts-node tests/manual/vertex-ai-smoke-test.ts",
"test:provider:bedrock": "TEST_PROVIDER=bedrock ts-node tests/manual/provider-smoke-test.ts",
"test:provider:azure": "TEST_PROVIDER=azure ts-node tests/manual/provider-smoke-test.ts",
"test:provider:inceptron": "TEST_PROVIDER=inceptron ts-node tests/manual/provider-smoke-test.ts",
"test:vertex:smoke": "ts-node tests/manual/vertex-ai-smoke-test.ts",
"test:integration:reasoning": "LLM_INTEGRATION_TESTS=true jest tests/integration/reasoning-control.integration.test.ts --testTimeout=120000",
"test:live": "LLM_INTEGRATION_TESTS=true jest tests/integration/*.integration.test.ts --testTimeout=120000",
"test:reasoning:smoke": "ts-node tests/manual/reasoning-smoke-test.ts",
"test:cache:smoke": "ts-node tests/manual/cache-smoke-test.ts",
"test:vision:smoke": "ts-node tests/manual/vision-smoke-test.ts",
"test:ci": "jest --runInBand --ci --coverage",
"lint": "eslint \"src/**/*.ts\"",
"clean": "node -e \"const fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
"prepare": "npm run build",
"prepublishOnly": "npm run clean && npm run build && npm run test"
},
"keywords": [
"llm",
"middleware",
"ai",
"ollama",
"openai",
"anthropic",
"google",
"vertex-ai",
"gemini",
"requesty",
"bedrock",
"azure-openai",
"inceptron",
"multi-provider",
"backend",
"typescript",
"express",
"json-cleaner",
"logging",
"chatbot",
"api",
"async",
"streaming",
"response-processing"
],
"author": "loonylabs-dev",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/loonylabs-dev/llm-middleware.git"
},
"bugs": {
"url": "https://github.com/loonylabs-dev/llm-middleware/issues"
},
"homepage": "https://github.com/loonylabs-dev/llm-middleware#readme",
"dependencies": {
"axios": "^1.7.9",
"cors": "^2.8.5",
"dotenv": "^16.4.7",
"express": "^4.18.2",
"google-auth-library": "^10.5.0",
"gpt-tokenizer": "^3.2.0",
"uuid": "^11.1.0"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.45.0",
"jest": "^29.7.0",
"nodemon": "^3.1.9",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=18.0.0"
},
"files": [
"dist",
"README.md",
"LICENSE",
".env.example"
],
"publishConfig": {
"access": "public"
}
}