@wangmingfa/model-gate 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@wangmingfa/model-gate",
3
+ "version": "0.0.1-beta.1",
4
+ "type": "module",
5
+ "description": "LLM API 中转网关:配置文件配置多家运营商模型,对外暴露统一 OpenAI 兼容接口",
6
+ "bin": {
7
+ "model-gate": "model-gate.js"
8
+ },
9
+ "files": [
10
+ "model-gate.js",
11
+ "README.md",
12
+ "config.example.json"
13
+ ],
14
+ "engines": {
15
+ "bun": ">=1.0.0"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/wangmingfa/model-gate.git"
20
+ },
21
+ "homepage": "https://github.com/wangmingfa/model-gate#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/wangmingfa/model-gate/issues"
24
+ },
25
+ "keywords": [
26
+ "llm",
27
+ "gateway",
28
+ "openai",
29
+ "proxy",
30
+ "api",
31
+ "load-balance",
32
+ "failover"
33
+ ],
34
+ "author": "wangmingfa",
35
+ "license": "MIT",
36
+ "scripts": {
37
+ "dev": "bun run --parallel dev:api dev:ui",
38
+ "dev:api": "MODEL_GATE_DEV=1 NODE_ENV=development bun scripts/ensure-admin-assets.ts && bun --watch src/index.ts",
39
+ "dev:ui": "cd admin && bun run dev",
40
+ "embed": "bun install --cwd admin && bun run --cwd admin build && bun scripts/embed-assets.ts",
41
+ "build": "bun run embed && bun build src/index.ts --target=bun --outfile model-gate.js",
42
+ "release": "bun scripts/release.ts",
43
+ "unpublish": "bun scripts/unpublish.ts",
44
+ "test": "bun test --path-ignore-patterns=admin",
45
+ "typecheck": "bun node_modules/typescript/bin/tsc --noEmit",
46
+ "kill-dev": "bun scripts/kill-dev.mjs"
47
+ },
48
+ "dependencies": {
49
+ "hono": "^4.6.0"
50
+ },
51
+ "devDependencies": {
52
+ "@types/bun": "^1.1.0",
53
+ "inquirer": "^14.1.0",
54
+ "typescript": "^5.0.0"
55
+ }
56
+ }