feat: DashScope 模型代理服务初始提交

支持 Anthropic 和 OpenAI 兼容协议的模型池反代,自动切换免费额度耗尽的模型。
This commit is contained in:
oy-paddy
2026-06-11 15:05:25 +08:00
commit d1021a00a0
18 changed files with 3140 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
"name": "dashscope-model-proxy",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx watch src/index.ts",
"start": "node dist/index.js",
"build": "tsc -p tsconfig.json",
"type-check": "tsc -p tsconfig.json --noEmit",
"release:prepare": "pnpm build && node scripts/prepare-release.mjs"
},
"dependencies": {
"@hono/node-server": "^1.14.4",
"dotenv": "^16.5.0",
"hono": "^4.7.11"
},
"devDependencies": {
"@types/node": "^22.15.30",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"packageManager": "pnpm@10.10.0"
}