Skip to content

Commit

Permalink
🐛 Bug: Fix the bug where Tokens usage reports an error when the API i…
Browse files Browse the repository at this point in the history
…s not set.
  • Loading branch information
yym68686 committed Jun 24, 2024
1 parent 69c6a92 commit b322d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def update_info_message(user_id = None):
f"**🔑 API:** `{replace_with_asterisk(api_key)}`\n\n" if api_key else "",
f"**🔗 API URL:** `{api_url}`\n\n" if api_url else "",
f"**🛜 WEB HOOK:** `{WEB_HOOK}`\n\n" if WEB_HOOK else "",
f"**🚰 Tokens usage:** `{get_robot(user_id)[0].tokens_usage[str(user_id)]}`\n\n",
f"**🚰 Tokens usage:** `{get_robot(user_id)[0].tokens_usage[str(user_id)]}`\n\n" if get_robot(user_id)[0] else "",
f"**📖 Version:** `{get_version_info()}`\n\n",
])

Expand Down

0 comments on commit b322d3e

Please sign in to comment.