Skip to content

Commit

Permalink
💻 Code: 1. Refactor the code, simplify the function call code.
Browse files Browse the repository at this point in the history
2. Upgrade ModelMerge version to 0.4.7
  • Loading branch information
yym68686 committed May 21, 2024
1 parent fdc1e48 commit 7e76714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
WEB_HOOK,
PORT,
BOT_TOKEN,
Users,
update_first_buttons_message,
update_model_buttons,
get_current_lang,
Expand Down Expand Up @@ -181,7 +182,7 @@ async def getChatGPT(update, context, title, robot, message, chatid, messageid):
image_has_send = 0

try:
for data in robot.ask_stream(text, convo_id=str(chatid), pass_history=pass_history):
for data in robot.ask_stream(text, convo_id=str(chatid), pass_history=pass_history, model=Users.get_config(chatid, "engine")):
if "🌐" not in data:
result = result + data
tmpresult = result
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pytz
python-dotenv
md2tgmd==0.1.9
ModelMerge==0.5.4
ModelMerge==0.5.5
fake_useragent
oauth2client==3.0.0
python-telegram-bot[webhooks,rate-limiter]==21.0.1

0 comments on commit 7e76714

Please sign in to comment.