faoisdjioga 最近的时间轴更新
faoisdjioga

faoisdjioga

V2EX 第 675010 号会员,加入于 2024-02-06 11:25:41 +08:00
今日活跃度排名 891
[吐槽] Codex 使用方法
OpenAI  •  faoisdjioga  •  13 分钟前  •  最后回复来自 FawkesV
12
v2rayN 在小米手机无法安装
问与答  •  faoisdjioga  •  16 天前  •  最后回复来自 Lwope
60
neovim 的最佳实践
编辑器  •  faoisdjioga  •  35 天前  •  最后回复来自 xiaket
4
web search MCP 推荐
Local LLM  •  faoisdjioga  •  57 天前  •  最后回复来自 AJDX3906
1
如何贫穷的使用 CCR
Claude  •  faoisdjioga  •  31 天前  •  最后回复来自 xiaket
9
苹果系统复制内容会失败嘛?
macOS  •  faoisdjioga  •  82 天前  •  最后回复来自 goldenlove
12
有 cluade-pro,在国内如何使用 claude code
Claude  •  faoisdjioga  •  77 天前  •  最后回复来自 nananqujava
12
NAS 磁盘挂载 symlinks error
Linux  •  faoisdjioga  •  148 天前  •  最后回复来自 dode
4
windows APP 连接远程 ubuntu
Linux  •  faoisdjioga  •  157 天前  •  最后回复来自 kasusa
12
faoisdjioga 最近回复了
1 小时 13 分钟前
回复了 faoisdjioga 创建的主题 OpenAI [吐槽] Codex 使用方法
@paopjian 我纯粹是为了装 X 用的。
1 小时 57 分钟前
回复了 faoisdjioga 创建的主题 OpenAI [吐槽] Codex 使用方法
@zhonghao01 我确实告诉他我改了代码,让他不要改(i have change something, notice it, do not update what i have changed)。
反思了一下我自己,但是我没有和他说重新阅读。可能是这个方向有偏差,印象中 codex 好你没有执行 [重新读代码] 这个动作
4 小时 35 分钟前
回复了 faoisdjioga 创建的主题 OpenAI [吐槽] Codex 使用方法
聪明想让我骂自己就开始没有做好规划

1. Try to read the parameter named fccut from self.params (self.get('fccut', …)).
2. If fccut is not set, fall back to self.get('fc_cut', 2 ** 0.5)—we look for fc_cut, and if that also isn’t set, use the
default 2 ** 0.5 (~1.414).
3. Wrap the final value in float(...) so the cutoff is always stored as a Python float.

So it supports both spellings (fccut from older configs, fc_cut from newer ones) while keeping the same default.
4 小时 45 分钟前
回复了 faoisdjioga 创建的主题 OpenAI [吐槽] Codex 使用方法
MOHTER FUCKER! MOHTER FUCKER!



› mother fucker, you udpate my build reference, i told you not update, just write logs, did you update it?


• I did adjust build_reference beyond just adding log lines earlier (counts-layer check, filtering missing columns, summary,
etc.). If you want it reverted to your previous logic and only add logging, let me know and I’ll roll it back to your version
before making further changes.
4 小时 55 分钟前
回复了 faoisdjioga 创建的主题 OpenAI [吐槽] Codex 使用方法
i see what you are getting. [Pasted Content 2101 chars] this is template, you code put function outside if__name__==__mian__ parenthesis, that is not what i want. also do not write you own fucntion, just copy what is in template, update the details params that is method specfic is fine

我说的不清楚嘛
@NickLuan 服务器是公司内部的计算服务器,因此没有您说的这个问题。运营商的服务器没有用过,不太清楚
@NickLuan 刚刚我理解错了。服务器是在国内。 代理是在国外。
@NickLuan 国外。走的 trojan-go
用他,注意是在 Remote-Server
{
"http.proxy": "http://127.0.0.1:1080",
"http.proxyStrictSSL": false,
"http.systemCertificates": false
}
# 1. Create a global proxy agent file
mkdir -p ~/.vscode-server/extensions
cat > ~/.vscode-server/extensions/proxy-agent.js <<'EOF'
const { setGlobalDispatcher, ProxyAgent } = require('undici');
const proxy = process.env.HTTPS_PROXY || process.env.HTTP_PROXY;
if (proxy) {
console.log('[VSCode Proxy] Using proxy:', proxy);
setGlobalDispatcher(new ProxyAgent(proxy));
}
EOF


# 2. Export proxy and Node options globally
echo 'export HTTP_PROXY="socks5://127.0.0.1:1080"' >> ~/.bashrc
echo 'export HTTPS_PROXY="socks5://127.0.0.1:1080"' >> ~/.bashrc
echo 'export NODE_OPTIONS="--require ~/.vscode-server/extensions/proxy-agent.js"' >> ~/.bashrc
source ~/.bashrc


因为没有 root ,chatgpt 给了我一个方式成功了。chatgpt 的解释为

🧠 1. What the problem really was

When you run VS Code Remote SSH, the “editor” part runs on your Mac,
but the extensions (ChatGPT, Copilot, Supermaven, R, etc.) run on the remote Linux server inside a Node.js process called the extension host:

VSCode (Mac)
└── SSH tunnel
└── vscode-server (Ubuntu)
└── node --type=extensionHost
└── openai.chatgpt-0.4.19-linux-x64


That Node process makes its own outbound HTTPS calls (to api.openai.com, etc.).
By default, it doesn’t inherit your system or VS Code proxy because:

VS Code starts that process with --useHostProxy=false (no host proxy forwarding)

Node’s internal HTTP client ignores http.proxy from VS Code settings

Therefore → all extension network traffic bypasses your proxy

So the ChatGPT / CodeX extension couldn’t reach the Internet unless the server itself had open access.
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5304 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 08:29 · PVG 16:29 · LAX 00:29 · JFK 03:29
♥ Do have faith in what you're doing.