프로젝트
GitHub에서 보기
tpai/summary-gpt-bot
소개
An AI-powered text summarization Telegram bot that generates concise summaries of text, URLs, PDFs, and YouTube videos.
AI 및 머신러닝What you can do
- Supports YouTube videos (no support for YouTube Shorts)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSummary 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
Launch a OpenAI GPT-4 summary bot that only can be used by your friends and you.
docker run -d \
-e LLM_MODEL=gpt-4 \
-e OPENAI_API_KEY=$OPENAI_API_KEY \
-e TELEGRAM_TOKEN=$YOUR_TG_TOKEN \
-e TS_LANG=$YOUR_LANGUAGE \
-e ALLOWED_USERS=<friend1_id>,<friend2_id>,<your_id> \
tonypai/summary-gpt-bot:latest
Launch a summary bot using Azure OpenAI.
docker run -d \
-e AZURE_API_BASE=https://<your_azure_resource_name>.openai.azure.com \
-e AZURE_API_KEY=$AZURE_API_KEY \
-e AZURE_API_VERSION=2024-02-15-preview \
-e LLM_MODEL=azure/<your_deployment_name> \
-e TELEGRAM_TOKEN=$YOUR_TG_TOKEN \
-e TS_LANG=$YOUR_LANGUAGE \
tonypai/summary-gpt-bot:latest
LLM Variables
| Environment Variable | Description |
|---|---|
| AZURE_API_BASE | API URL base for AZURE OpenAI API |
| AZURE_API_KEY | API key for AZURE OpenAI API |
| AZURE_API_VERSION | API version for AZURE OpenAI API |
| OPENAI_API_KEY | API key for OpenAI API |
Bot Variables
| Environment Variable | Description |
|---|---|
| CHUNK_SIZE | The maximum token of a chunk when receiving a large input (default: 10000) |
| LLM_MODEL | LLM Model to use for text summarization (default: gpt-3.5-turbo-16k) |
| TELEGRAM_TOKEN | Token for Telegram API (required) |
| TS_LANG | Language of the text to be summarized (default: Taiwanese Mandarin) |
| DDG_REGION | The region of the duckduckgo search (default: wt-wt) 👉Regions |
| ALLOWED_USERS | A list of user IDs allowed to use. Asking @myidbot for Telegram ID (optional) |
관련 프로젝트 살펴보기
불러오는 중…