Skip to content

sslisen/ChatGPT-API

Repository files navigation

ChatGPT-API

#Basic ChatGPT API Code:

This is the most basic code to use ChatGPT

You can only edit the prompts in the code, run the program, and the result will be returned by ChatGPT.

Every time you need to modify the prompt in the code and re-run it to get a different return result.

You need install openai and dotenv package.

image

#Upgrade ChatGPT API Code #This is the more easy to use ChatGPT

In this code, ChatGPT can conduct continuous dialogue until the user actively terminates the program.

But it cannot be answered in context, that is to say, each dialogue is independent and will not follow the previous dialogue.

You need install openai and dotenv package.

image

#Advanced ChatGPT API Code

This code allows users to use ChatGPT in GUI via browers.

It can be answered in context, that is to say, each dialogue follows the previous dialogue.

You need install openai and dotenv and gradio package.

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published