Skip to content

njpdx1/Python-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AI Chatbot using OpenAI's GPT-3.5 Turbo

Description

This Python script implements a chatbot named Marv that uses OpenAI's GPT-3.5 Turbo model to provide responses to user queries. Marv adds a touch of sarcasm to its responses, making interactions more engaging and humorous. The script demonstrates how to interact with the OpenAI API to create a chatbot experience.

Features

  • Welcome message to greet users.
  • User input prompt for chatting with the chatbot.
  • Utilizes OpenAI's GPT-3.5 Turbo model for generating responses.
  • Implements error handling in case of API issues.

Usage

  1. Clone the repository or download the script to your local machine.
  2. Install the required dependencies. You can install the openai library using pip:
  3. Create an OpenAI account and obtain an API key. Save your API key in a file named hidden.txt.
  4. Run the script by executing the main.py file
  5. Type your message, and Marv will respond with a sarcastic answer generated by the GPT-3.5 Turbo model.
  6. Continue chatting with Marv as long as you like.

Dependencies

  • OpenAI API: Used for generating chatbot responses.

Contact

For any questions or inquiries, please feel free to contact me at najiib@pdx.edu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages