• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sniperking1234
V2EX  ›  程序员

Cline 在 vscode 中进行 remote 开发,当开发机无法连接外网的时候,不能连接到大模型的 API,有无解决方法?

  •  
  •   sniperking1234 · Apr 24, 2025 · 2568 views
    This topic created in 569 days ago, the information mentioned may be changed or developed.

    大家有没有遇到这个问题,能否用 PC 端的网络访问大模型的 API 呢

    4 replies  •  2025-04-25 12:22:20 +08:00
    lee88688
    lee88688
    Apr 24, 2025
    1
    远程机器代理转发到本机,然后用本机的网络请求,感觉这个方案可行也。
    sniperking1234
    sniperking1234
    OP
    Apr 24, 2025
    2
    @lee88688 SSH 隧道这种方案吗
    kneo
    kneo
    Apr 25, 2025
    3
    用 frp 转发下。应该是远程开发机上运行 frps ,你自己的桌面机运行 frpc 。
    lee88688
    lee88688
    Apr 25, 2025
    4
    @sniperking1234 对啊,本来远程连接借用 ssh ,自己再往外创建一个命令用于远程端口转发到本地配置一下 proxy 。不过不是很清楚 vscode 上面远程开发的 proxy 是怎么工作的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:42 · PVG 07:42 · LAX 15:42 · JFK 18:42
    ♥ Do have faith in what you're doing.