mirror of
https://github.com/7836246/cursor2api.git
synced 2026-04-26 03:25:53 +03:00
-
v2.5.4 Stable
released this
2026-03-11 09:43:04 +03:00 | 107 commits to main since this release📅 Originally published on GitHub: Wed, 11 Mar 2026 06:44:44 GMT
🏷️ Git tag created: Wed, 11 Mar 2026 06:43:04 GMT🌐 内网代理支持 (Issue #17)
- 修复
fetch failed:Node.js 原生fetch()不读取HTTP_PROXY/HTTPS_PROXY环境变量,内网用户设置这些变量后请求仍然直连失败 - 新增 proxy-agent.ts:使用
undici.ProxyAgent作为 fetch dispatcher,所有外发请求(Cursor API、Vision API)均可通过 HTTP 代理转发 - 配置方式:在 config.yaml 中设置
proxy字段,或通过PROXY环境变量指定(支持http://用户名:密码@代理:端口格式) - 单元测试:新增 16 个测试用例覆盖代理模块的核心逻辑
使用方法
方式一:config.yaml(推荐)
proxy: "http://用户名:密码@代理地址:8080" 方式二:PROXY 环境变量 bash export PROXY='http://用户名:密码@代理地址:8080' npm run dev ⚠️ HTTP_PROXY 和 HTTPS_PROXY 对本项目无效,请使用 PROXY 环境变量或 config.yaml 中的 proxy 字段。Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- 修复