Sign inSign up

jp0id/summary-gpt-bot

By jp0id

Updated over 1 year ago

Image
0

1.2K

jp0id/summary-gpt-bot repository overview

Summary GPT Bot

An AI-powered text summarization Telegram bot that generates concise summaries of text, URLs, PDFs and YouTube videos.

Features

  • Supports text
  • Supports URLs
  • Supports PDFs
  • Supports YouTube videos (no support for YouTube Shorts)

Usage

docker run -d \
    --name summary-gpt-bot \
    -e LLM_MODEL=gpt-4 \
    -e API_KEY=API_KEY \
    -e TELEGRAM_TOKEN=$YOUR_TG_TOKEN \
    -e TS_LANG=chinese \
    -e ALLOWED_USERS=<friend1_id>,<friend2_id>,<your_id> \
    -e BASE_URL=$BASE_URL \
    jp0id/summary-gpt-bot:latest

LLM Variables

Environment VariableDescription
BASE_URLAPI URL base AI API
API_KEYAPI key for AI API
LLM_MODELAPI model for AI API

Bot Variables

Environment VariableDescription
CHUNK_SIZEThe maximum token of a chunk when receiving a large input (default: 10000)
LLM_MODELLLM Model to use for text summarization (default: gpt-3.5-turbo-16k)
TELEGRAM_TOKENToken for Telegram API (required)
TS_LANGLanguage of the text to be summarized (default: Chinese Mandarin)
DDG_REGIONThe region of the duckduckgo search (default: wt-wt) 👉Regions
ALLOWED_USERSA list of user IDs allowed to use. Asking @get_tg_info_bot for Telegram ID (optional)

Tag summary

Content type

Image

Digest

sha256:94a706a54

Size

72.1 MB

Last updated

over 1 year ago

docker pull jp0id/summary-gpt-bot