Code Monkey home page Code Monkey logo

gpt-starter's Introduction

OpenAI Chatbot

This script provides a simple interface to chat with OpenAI's GPT-3.5-turbo model. It allows users to have a conversation with the model and quit the conversation by typing "exit".

Prerequisites

You need to have Python installed. Install openai Python library using pip:

pip install openai

Setup

Make sure you have an OpenAI API key. Store your API key in a secret.py file as key = 'YOUR_API_KEY'.

How to Run

Execute the script using Python:

python chat_bot.py

Once you run the script, it will prompt you with User: . You can then start typing and the chatbot will respond. To exit the conversation, simply type exit.

Usage Example

Welcome! Let's start a new chat...(Type 'exit' to quit)
User: Hello!
Chatbot: Hello! How can I help you today?
User: What's the weather like?
Chatbot: I'm sorry, I cannot check real-time weather. Would you like information on how weather systems work instead?
User: exit

Feedback and Contributions

For any feedback or contributions to this script, please open a pull request or raise an issue in this repository.

gpt-starter's People

Contributors

tabithamccracken avatar iansedano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.