goldfishh / chatgpt-tool-hub

An open-source chatgpt tool ecosystem where you can combine tools with chatgpt and use natural language to do anything.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于代理配置问题

xiaohundun opened this issue · comments

前置确认

1. 网络能够访问openai接口
2. git pull 拉取最新代码
3. 执行pip install -r requirements.txt,检查依赖是否满足
4. 在已有 issue 中未搜索到类似问题

5. 注意,提issue前请确认用本项目test.py(参考README.md 快速开始配置)重试一次你的问题是否能复现

问题描述

  1. 你的问题是否在test.py能复现?

  2. 你复现时的config.json,注意抹去你的api-key

{
  "tools": [],
  "kwargs": {
      "debug": true  // debug模式一定要打开
  }
}
  1. 你的问题:
我不需要代理,所以我在配置中将PROXY置为空,但是程序仍然使用了代理并且报错
  1. 收到ai的回复:

  1. debug模式终端打印的日志:
[INFO][2023-05-10 16:03:32][terminal_io.py:591] - > xxx: hi
[INFO][2023-05-10 16:03:32][victorinox.py:111] - xx: hi
[WARNING][2023-05-10 16:03:32][before_sleep.py:65] - Retrying chatgpt_tool_hub.models.chatgpt.chatgpt.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 15.0 seconds as it raised APIConnectionError: Error communicating with OpenAI: Please check proxy URL. It is malformed and could be missing the host..

环境

  • 操作系统类型 (Mac/Windows/Linux):Mac
  • Python版本 ( 执行 python -V ):Python 3.11.3
  • pip版本 ( 执行 pip -V):pip 18.1