Coder Social home page Coder Social logo

chatgpt's Introduction

Note Added API-GPT-4 support. To use the bot without using gpt-4, change gpt-4 in the file to gpt-3.5-turbo

ChatGPT: Telegram Bot powered by OpenAI GPT-4

ChatGPT is a Telegram bot that utilizes OpenAI's GPT-4 language model to generate human-like responses to user messages. The bot can be used for casual conversations, brainstorming ideas, or even for educational purposes.

Bot

The bot offline

Telegram:

Installation

To use the ChatGPT bot, you will need to have a Telegram account and an OpenAI API key. You can obtain an API key by signing up for OpenAI's GPT-4 program.

Once you have your API key, you can download the source code for the bot and install the required dependencies using the following commands:

git clone https://github.com/Tr3bleee/ChatGPT.git

cd ChatGPT

pip install -r requirements.txt

Configuration

Before running the bot, you will need to update the bot_token and api_key variables in the main.py file with your own Telegram bot token and OpenAI API key, respectively.

Usage

To start the ChatGPT bot, run the following command:

python main.py

Once the bot is running, you can interact with it by sending messages to its Telegram account. The bot will respond to your messages with human-like responses generated by the GPT-4 model.

The bot currently supports the following commands:

/start: Initializes the bot and starts a new conversation thread.

/newtopic: Starts a new topic of conversation in the current conversation thread.

/image: Generate image with support DALL-E

/about: About bot

/help: Show commands

Interface

imageimage

Contributing

If you would like to contribute to the ChatGPT project, please submit a pull request with your proposed changes. We welcome contributions of all kinds, including bug fixes, new features, and improvements to the documentation.

License

The ChatGPT project is licensed under the MIT License. See the LICENSE file for more information.

chatgpt's People

Contributors

y9tr3ble avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chatgpt's Issues

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.