Skip to content

Commit

Permalink
Load frequently updated Python packages through git submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Jun 26, 2024
1 parent 8f2a470 commit 1f780f9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import logging
import traceback
import utils.decorators as decorators
from md2tgmd import escape

from ModelMerge.utils.prompt import translator_en2zh_prompt, translator_prompt, claude3_doc_assistant_prompt
from ModelMerge.utils.scripts import Document_extract, claude_replace, get_image_message
from md2tgmd.src.md2tgmd import escape
from ModelMerge.src.ModelMerge.utils.prompt import translator_en2zh_prompt, translator_prompt, claude3_doc_assistant_prompt
from ModelMerge.src.ModelMerge.utils.scripts import Document_extract, claude_replace, get_image_message

import config
from config import (
Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from utils.i18n import strings
from datetime import datetime
from ModelMerge.utils import prompt
from ModelMerge.models import chatgpt, claude, groq, claude3, gemini, PLUGINS
from ModelMerge.src.ModelMerge.utils import prompt
from ModelMerge.src.ModelMerge.models import chatgpt, claude, groq, claude3, gemini, PLUGINS
from telegram import InlineKeyboardButton

NICK = os.environ.get('NICK', None)
Expand Down
14 changes: 11 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
--index-url https://pypi.python.org/simple/
python-dotenv
md2tgmd==0.2.4
ModelMerge==0.7.10
python-telegram-bot[webhooks,rate-limiter]==21.0.1
python-telegram-bot[webhooks,rate-limiter]==21.0.1

lxml
pytz
PyExecJS
requests
pdfminer.six
beautifulsoup4
tiktoken==0.6.0
duckduckgo-search==5.3.1
google-api-python-client==2.128.0
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -eu
rm -rf /home/ChatGPT-Telegram-Bot
git clone --depth 1 -b main https://github.com/yym68686/ChatGPT-Telegram-Bot.git
git clone --recurse-submodules --depth 1 -b main https://github.com/yym68686/ChatGPT-Telegram-Bot.git
python -u /home/ChatGPT-Telegram-Bot/bot.py

0 comments on commit 1f780f9

Please sign in to comment.