goldfishh / chatgpt-tool-hub

An open-source chatgpt tool ecosystem where you can combine tools with chatgpt and use natural language to do anything.
MIT License
1.18k stars 155 forks source link

新闻类的工具调用不是很准确 #39

Open Li-Eternally opened 1 year ago

Li-Eternally commented 1 year ago

前置确认

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

已拉取更新最新代码,依赖 chatgpt-on-wechat版本:1.2.5 chatgpt-tool-hub版本:0.4.3

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

    {
    "tools": [
    "news",
    "arxiv",
    "debug",
    "summary",
    "url-get",
    "terminal",
    "wikipedia",
    "bing-search",
    "meteo-weather",
    "wolfram-alpha"
    
    ],
    "kwargs": {
    "top_k_results": 2,
    "no_default": true,
    "debug": true,
    "searx_host": "",
    "model_name": "gpt-3.5-turbo",
    "bing_subscription_key": "278fc47d0cd218",
    "news_api_key":"f2fddd62b941",
    "wolfram_alpha_appid":"7UH8R7RJ4H",
    "google_api_key": "vhrasGFEwAkp3Fm1-Mg",
    "google_cse_id": "dc84eb3",
    "zaobao_api_key": "8Qwk"
    }
    }
  2. 你的问题:

无论怎么引导,它却只调用news-api,而不调用morning-news
或者还是说我询问的方式不对?
  1. 收到ai的回复: image image

  2. debug模式终端打印的日志: image

环境

xibiange commented 1 year ago

image youshihou有时候会报错

goldfishh commented 1 year ago

我的没有同步清楚的问题,早报的api-key改名了,现在是morning_news_api_key 如果你没有配置这个参数载入news的子tool morning-news时会有info的报错,你可以检查一下能不能在日志看到

goldfishh commented 1 year ago

image youshihou有时候会报错

这个问题我之后会排查的