- 添加完整的项目基础结构,包括配置、类型定义和常量 - 实现OAuth认证流程和令牌管理 - 开发请求转换和响应处理逻辑 - 添加SSE流处理和ChatCompletions API转换 - 实现模型映射和提示指令系统 - 包含Docker部署配置和快速启动文档 - 添加自动登录功能和测试脚本
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"name": "chatgpt-codex-router",
|
|
"version": "1.0.0",
|
|
"description": "OpenAI-compatible API router that forwards requests to ChatGPT backend with OAuth authentication",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc && mkdir -p dist/public && cp public/oauth-success.html dist/public/",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src --ext .ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"dependencies": {
|
|
"hono": "^4.10.4",
|
|
"@openauthjs/openauth": "^0.4.3",
|
|
"dotenv": "^16.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.6.2",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^3.2.4",
|
|
"eslint": "^9.15.0",
|
|
"prettier": "^3.4.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
"tsx": "^4.19.2"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"public/",
|
|
"docker/",
|
|
"README.md",
|
|
"LICENSE"
|
|
]
|
|
}
|