GithubHelp home page GithubHelp logo

mychatgpt's Introduction

myChatGPT ๐Ÿค–๐Ÿ’ฌ

myChatGPT is a project aimed at showcasing interactions with the OpenAI ChatGPT API using both Java and Python programming languages. This repository contains implementations of chatbots that communicate with the ChatGPT model to provide conversational responses to user input.

Overview ๐ŸŒŸ

The project consists of two implementations:

  1. Java Implementation: Utilizes Java to interact with the ChatGPT API via HTTP requests. It provides a simple command-line interface for users to ask questions and receive responses from the ChatGPT model.

  2. Python Implementation: Utilizes Python with the OpenAI Python library to communicate with the ChatGPT API. Similar to the Java implementation, it offers a command-line interface for users to engage in conversation with the ChatGPT model.

Features ๐Ÿš€

  • Interactive Chat: Users can interact with the ChatGPT model by typing questions or prompts into the command-line interface.
  • Multi-Language Support: Both Java and Python implementations support interaction with the ChatGPT model in multiple languages.
  • Customization: The project allows users to customize the chatbot's behavior and appearance according to their preferences.
  • Efficient Communication: The implementations use HTTP requests to communicate with the ChatGPT API, ensuring efficient data transmission.

Usage ๐Ÿ’ป

Java Implementation

  1. Ensure you have Java installed on your system.
  2. Compile the HttpRequestMultipleHeadersExample.java file.
  3. Run the compiled Java program.
  4. Follow the on-screen instructions to interact with the chatbot.

Python Implementation

  1. Install the required Python dependencies by running pip install openai.
  2. Set up your OpenAI API key. Instructions can be found here.
  3. Run the chat_with_ChatGPT.py Python script.
  4. Input questions or prompts when prompted by the command-line interface.

Disclaimer โš ๏ธ

  • Usage Limitation: Be mindful of OpenAI's usage policies and limitations. Check your API usage regularly to avoid exceeding usage limits or incurring additional charges.
  • Data Privacy: Avoid sharing sensitive or personal information when interacting with the chatbots.
  • Responsibility: The developers of myChatGPT do not assume any responsibility for misuse of the ChatGPT API or any negative consequences resulting from such misuse.

Chatting with myChatGPT in Terminal ๐Ÿ“ธ

Chatting with myChatGPT in Terminal

Contributing ๐Ÿค

Contributions to the myChatGPT project are welcome! If you have any suggestions, feature requests, or bug reports, feel free to open an issue or submit a pull request.

mychatgpt's People

Contributors

ongcl03 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.