-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置代理后出错 #549
Comments
请查看日志,是否有提示未安装https-proxy-agent,请在插件目录下执行pnpm add https-proxy-agent |
这次开了debug日志,已在插件目录执行过pnpm add https-proxy-agent |
应该是要删除那个依赖才能用吧?我记得前一阵子的pr已经移除了这个依赖 用Yunzai自带的依赖版本可用 |
新环境,刚pull的Miao-Yunzai和chatgpt-plugin,在插件目录pnpm i后运行,配置代理 测试就是这个报错,再执行pnpm add https-proxy-agent实际没有download任何东西 |
执行pnpm ls看看依赖版本 |
|
https-proxy-agent版本为7+了 这个不兼容的 |
移除后代理已正常工作 |
[MiaoYz][15:35:07.938][ERRO] TypeError: proxy is not a function
at newFetch (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/apps/chat.js:102:14)
at file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:68:42
at step (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:32:23)
at Object.next (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:13:53)
at file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:7:71
at new Promise ()
at __awaiter (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:3:12)
at fetchSSE (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/fetch-sse.js:62:12)
at ChatGPTAPI. (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/chatgpt-api.js:202:41)
at step (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/utils/openai/chatgpt-api.js:43:23)
[MiaoYz][15:35:07.939][ERRO] Error: TypeError: proxy is not a function
at chatgpt.sendMessage (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/apps/chat.js:2162:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async chatgpt.abstractChat (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/apps/chat.js:1035:25)
at async chatgpt (file:///root/Miao-Yunzai/plugins/chatgpt-plugin/apps/chat.js:815:5)
at async PluginsLoader.deal (file:///root/Miao-Yunzai/lib/plugins/loader.js:269:54)
The text was updated successfully, but these errors were encountered: