Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ChatGPT Hello World Project

This project is inspired by this tutorial. However, the code in the tutorial is outdated.

Installation

  1. Install the OpenAI library:

    pip install openai
  2. Get an OpenAI API key from here.

  3. Ensure you have a minimum balance of $10 USD on your OpenAI account. Note that this OpenAI account is separate from any paid ChatGPT subscription.

  4. Set the OPEN_AI_KEY environment variable with your paid API key.

Cloning the Repository

Clone this repository using git:

git clone https://github.com/mika-data/chatGPT-HelloWorld.git

Running the Code

Test the code by running:

python helloWorld.py

Expected Output

You should see the following output on the console:

1. Apple
2. Banana
3. Pear
4. Orange
5. Mango
6. Strawberry
7. Blueberry
8. Watermelon
9. Pineapple
10. Peach

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages