Skip to content

Commit

Permalink
🔌 Plugin: Add the plugin to execute Python code.
Browse files Browse the repository at this point in the history
✨ Feature: Add tokens statistics.

💻 Code: Upgrade ModelMerge version to 0.4.11
  • Loading branch information
yym68686 committed May 19, 2024
1 parent db7d6a5 commit 13835d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def update_info_message(user_id = None):
f"**API_URL:** `{API_URL}`\n\n"
f"**API:** `{replace_with_asterisk(API)}`\n\n"
f"**WEB_HOOK:** `{WEB_HOOK}`\n\n"
f"**tokens usage:** `{get_robot(user_id)[0].tokens_usage[str(user_id)]}`\n\n"
)

ChatGPTbot, SummaryBot, translate_bot, claudeBot, claude3Bot, groqBot, gemini_Bot = None, None, None, None, None, None, None
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.4.7
ModelMerge==0.4.11
fake_useragent
oauth2client==3.0.0
python-telegram-bot[webhooks,rate-limiter]==21.0.1
4 changes: 4 additions & 0 deletions utils/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@
"zh": "DALL·E 3",
"en": "DALL·E 3",
},
"CODE": {
"zh": "代码执行",
"en": "Code execution",
},
}

0 comments on commit 13835d6

Please sign in to comment.