Marc518 / EX-chatGPT

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EX-chatGPT introduction

update

  • update OpenAI GPT3.5 Turbo offical API support, super fast and cheap.
  • update extra API calls and search summarizations to give a more comprehensive and detailed answer.
  • 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

Background

"ChatGPT as Inherent Toolformer" means that ChatGPT has the ability to become a tool for various tasks without requiring additional adjustments.

However, ChatGPT has some limitations such as being unable to connect to the internet and difficulty solving math problems.

ToolFormer enables language models to use specific tools for different tasks. Can ChatGPT be equipped with ToolFormer's abilities?

The challenge is how to adapt ToolFormer's API generation process to ChatGPT.

Recent experiments demonstrate that given a specific prompt, ChatGPT has a natural ability to create APIs for text.

Therefore, it can be concluded that ChatGPT has inherent ToolFormer capabilities!

Toolformer Paper the subproject WebChatGPT enchanced is based on WebChatGPT chrome extension

Demo

ExChatGPT-bilibili API call Demos: API QA Demos: math zhihu zhihu zhihu zhihu

Usage

Ex-chatGPT

  • pip install pip install -r requirements.txt
  • fill your API keys in apikey.ini
    • Google api key and search engine id apply
    • wolframAlpha app id key apply
    • openAI api key(new feature) or chatGPT access_token(old version) apply
  • run the main.py and click the local url like http://127.0.0.1:5000/
  • change the mode in the selection box, now have chat,detail,web

WebChatGPTEnhance

  • fill you Googgle api key and client id in chatGPTChromeEhance/src/util/apiManager.ts/getDefaultAPI
  • run npm install
  • run npm run build-prod
  • get the extension in 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

About

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

License:MIT License


Languages

Language:TypeScript 64.1%Language:Python 22.0%Language:HTML 5.4%Language:JavaScript 4.5%Language:CSS 4.0%