Code Monkey home page Code Monkey logo

grotel's Introduction

Telegram Groq Bot

License Python

This project is a Telegram chatbot that integrates with Groq Inc's cloud API to provide inference results based on user inputs. The bot interacts with users, allowing them to choose from various models and input their data to get predictions or insights from the selected model.

Features

  • Model Selection: Users can choose from multiple models such as Gemma-7b-it, Llama3-8b, Mixtral-8x7B, and Llama3-70B.
  • Dynamic Inference: After selecting a model, users can input their data, and the bot fetches the inference result from Groq Inc's API.
  • User-Friendly Interaction: Simple and intuitive conversation flow with Telegram bot commands.

Getting Started

Follow these instructions to set up and run the bot on your local machine.

Prerequisites

  • Python 3.8 or higher
  • A Telegram bot token from BotFather
  • A Groq API key

Installation

  1. Clone the repository:

    git clone https://github.com/vvkmulukutla/grotel.git
    cd grotel
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Create and configure the .env file:

    TELEGRAM_BOT_TOKEN=your_telegram_bot_token
    GROQ_API_KEY=your_groq_api_key
    

Running the Bot

Start the bot by running the following command:

python -m bot.main

Usage

Once the bot is running, you can interact with it on Telegram:

  • /start: Initiate the bot and choose a model.
  • Model Selection: Choose from Gemma-7b-it, Llama3-8b, Mixtral-8x7B, and Llama3-70B.
  • Input Data: Enter the data for which you need the inference.
  • Receive Results: Get the inference result from the selected model.

Contributing

We welcome contributions to enhance this project. Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements


Feel free to customize this README.md to better fit your project's specifics. This file aims to provide a clear and comprehensive guide to users and contributors.

grotel's People

Contributors

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