From 70fe0ff4091885f3b4446cd3f367423198669416 Mon Sep 17 00:00:00 2001 From: yym68686 Date: Fri, 14 Jun 2024 03:26:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bug:=20Fix=20the=20bug=20of=20up?= =?UTF-8?q?loading=20image=20timeout.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💻 Code: Upgrade ModelMerge version to 0.6.10 --- bot.py | 2 ++ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 588975d7..d39efb76 100644 --- a/bot.py +++ b/bot.py @@ -320,6 +320,8 @@ async def getChatGPT(update, context, title, robot, message, chatid, messageid, print(escape(tmpresult)) else: sent_message = await context.bot.edit_message_text(chat_id=chatid, message_id=answer_messageid, text=escape(tmpresult), parse_mode='MarkdownV2', disable_web_page_preview=True, read_timeout=time_out, write_timeout=time_out, pool_timeout=time_out, connect_timeout=time_out) + # print("tmpresult", tmpresult) + if Users.get_config(convo_id, "FOLLOW_UP"): prompt = ( f"You are a professional Q&A expert. You will now be given reference information. Based on the reference information, please help me ask three most relevant questions that you most want to know from my perspective. Be concise and to the point. Do not have numbers in front of questions. Separate each question with a line break. Only output three questions in {config.LANGUAGE}, no need for any explanation. reference infomation is provided inside XML tags." diff --git a/requirements.txt b/requirements.txt index f301a7ff..7a6b0032 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ --index-url https://pypi.python.org/simple/ python-dotenv md2tgmd==0.2.2 -ModelMerge==0.6.9 +ModelMerge==0.6.10 python-telegram-bot[webhooks,rate-limiter]==21.0.1 \ No newline at end of file