mirror of
https://github.com/7836246/cursor2api.git
synced 2026-04-26 19:45:52 +03:00
[GH-ISSUE #17] 内网中可以挂外网代理吗 #14
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cursor2api#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @parkerisme on GitHub (Mar 11, 2026).
Original GitHub issue: https://github.com/7836246/cursor2api/issues/17
我在内网中使用前,
export HTTP_PROXY='http://账号:密码@代理:8080'
export HTTPS_PROXY='http://账号:密码@代理:8080',
然后npm run dev后,
测试:
[OpenAI] 收到请求: model=anthropic/claude-sonnet-4.6, messages=1, stream=undefined, tools=0
[Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1
[Cursor] 请求失败 (1/2): fetch failed
[Cursor] 2s 后重试...
[Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1
[Cursor] 请求失败 (2/2): fetch failed
[OpenAI] 请求处理失败: fetch failed
@7836246 commented on GitHub (Mar 11, 2026):
HTTP_PROXY 和 HTTPS_PROXY 对本项目无效,请使用 PROXY 环境变量或 config.yaml中的 proxy 字段。 稍后更新2.5.4的版本可以