This project uses python to simply implement the experience of how to call Chagpt's api for dialogue and other tasks.
- install openai package use "pip install openai"
- Add your openAI key to the "authorization" in the config/chatgpt_config.py
- run this command "python test.py" in your terminal,or run test.py in your ide.
- You can also use the OpenAI api (https://platform.openai.com/docs/guides/chat) to call, but it’s more flexible and convenient to implement by yourself to expand more applicatioins.
- The dialogue is entered directly from the command line. By default, the context of the dialogue will always be accumulated. If you want to clear the context, you can directly enter 'clear' on the command line
- support mutil-turn dialogue