VS Code插件 ai-genie報(bào)錯request to https://api.openai.com/v1/chat/解決
2023-05-10 19:35 作者:目標(biāo)力扣Knight | 我要投稿

request to https://api.openai.com/v1/chat/completions failed, reason: connect ECONNREFUSED 127.0.0.1:XXXX
解決方案
報(bào)錯分析:
本地代理轉(zhuǎn)發(fā)端口錯誤,插件使用的端口與系統(tǒng)使用的端口不一致
解決方案:
來源[is it possible to add proxy support? · Issue #7 · ai-genie/chatgpt-vscode (github.com)](https://github.com/ai-genie/chatgpt-vscode/issues/7)
步驟:
第一步:打開 vscode
設(shè)置,搜索proxy,選中在settings.json中編輯

第二步:添加如下配置
?

第三步:發(fā)起提問,測試通過

標(biāo)簽: