binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
65.94k stars 8.09k forks source link

[Bug]: #2053

Open Raymond-9527 opened 1 day ago

Raymond-9527 commented 1 day ago

Installation Method | 安装方法与平台

OneKeyInstall (一键安装脚本-windows)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

启动后显示错误代码:KeyError: 'https’ ,且无法弹出浏览器窗口,此现象出现于配置完毕config.py之后

Screen Shot | 有帮助的截图

09:38 | ..up_logging:60 | 所有对话记录将自动保存在本地目录gpt_log\admin\chat_secrets.log, 请注意自我隐私保护哦! 09:38 | .._lru_cache:97 | [PROXY] 网络代理状态:已配置。配置信息如下: {'http': 'http://127.0.0.1:7890'} Traceback (most recent call last): File "C:\GPT-Academic\OneKeyInstallerForWindowsAndMacOS\gpt_academic\main.py", line 358, in main() File "C:\GPT-Academic\OneKeyInstallerForWindowsAndMacOS\gpt_academic\main.py", line 85, in main proxy_info = check_proxy(proxies) File "C:\GPT-Academic\OneKeyInstallerForWindowsAndMacOS\gpt_academic\check_proxy.py", line 15, in check_proxy proxies_https = proxies['https'] if proxies is not None else '无' KeyError: 'https'

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

binaryYuki commented 10 hours ago

建议检查一下您的 config.py

    proxies = {
        #          [协议]://  [地址]  :[端口]
        "http":  "socks5h://localhost:11284",  # 再例如  "http":  "http://127.0.0.1:7890",
        "https": "socks5h://localhost:11284",  # 再例如  "https": "http://127.0.0.1:7890",
    }

是否同时存在"http"和"https"协议