Skip to content

Let ChatGPT truly learn how to go online and call APIs! 'EX-ChatGPT' can rival and even surpass NewBing

License

Notifications You must be signed in to change notification settings

tuangtalk/EX-chatGPT

 
 

Repository files navigation

Ex-ChatGPT - ChatGPT with ToolFormer

language GitHub GitHub last commit GitHub Repo stars

简体中文 English / Background

很多情况下,ChatGPT 无需调整就能作为工具完成很多工作。而 Ex-ChatGPT 允许 ChatGPT 调用外部 API,例如 WolframAlpha 和 Bing,从而给出更准确且具有时效性的回答。

本项目分为 Ex-ChatGPT 和 WebChatGPTEnhance,前者是使用 ChatGPT API 的服务,后者是浏览器插件。

Highlights

  • 支持 OpenAI GPT-3.5 Turbo API
  • 允许 ChatGPT 调用外部 API 接口
  • 可以使用 GPT-3 将外部接口返回的内容进行总结
  • 保存对话历史,ChatGPT 可联系之前对话
  • 可显示使用的 Token 数量

安装

Ex-chatGPT

  • pip install pip install -r requirements.txt
  • apikey.ini 中填入你的 API 密钥
    • Google api key and search engine id apply
    • wolframAlpha app id key apply
    • openAI api key(新功能) 或 chatGPT access_token(旧版本) apply
  • 运行 main.py 并打开 https://127.0.0.1:5000/
  • 调整模式,例如 chat,detail,web

WebChatGPTEnhance

  • chatGPTChromeEhance/src/util/apiManager.ts/getDefaultAPI 中填入 Google API 信息
  • 运行 npm install
  • 运行 npm run build-prod
  • chatGPTChromeEhance/build 中获取构建好的扩展
  • add your prompts and APIs in option page.
    • APIs and prompts examples are in /WebChatGPTAPI
    • wolframAlpha needs to run local sever - WebChatGPTAPI/WolframLocalServer.py

更新日志

  • 支持 OpenAI GPT-3.5 Turbo API,快速且价格低廉
  • 额外的 API 调用和搜索摘要,以提供更全面和详细的答案
  • 更新聊天记录token优化器,web模式可以根据聊天记录进行响应;添加token成本计数器 history
  • upate web chatmode selection in webpage and optimize the prompt and the token cost, and restrict the token limit. mode
  • update better suppoer chinese query and add current date info date
  • update web chatmode and fix some bugs
  • update api config

About

Let ChatGPT truly learn how to go online and call APIs! 'EX-ChatGPT' can rival and even surpass NewBing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.0%
  • Python 24.7%
  • HTML 5.2%
  • JavaScript 4.3%
  • CSS 3.8%