Skip to content

enen-en/ChaGPT-API-Call

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChaGPT-API-Call

overall

This project uses python to simply implement the experience of how to call Chagpt's api for dialogue and other tasks.

how to run

  1. install openai package use "pip install openai"
  2. Add your openAI key to the "authorization" in the config/chatgpt_config.py
  3. run this command "python test.py" in your terminal,or run test.py in your ide.

notice

image

  • 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

features

  • support mutil-turn dialogue

dialogue show

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%