Skip to content

Commit

Permalink
Fixed the error in displaying the search robot model
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Sep 26, 2023
1 parent ddc5a43 commit 4c42500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
print("nick:", botNick)
translator_prompt = "You are a translation engine, you can only translate text and cannot interpret it, and do not explain. Translate the text to {}, please do not explain any sentences, just translate or leave them as they are. this is the content you need to translate: "
async def command_bot(update, context, language=None, prompt=translator_prompt, title="", robot=None, has_command=True):
if config.SEARCH_USE_GPT:
title = f"`🤖️ {config.DEFAULT_SEARCH_MODEL}`\n\n"
if update.message.reply_to_message is None:
if has_command == False or len(context.args) > 0:
message = update.message.text if config.NICK is None else update.message.text[botNicKLength:].strip() if update.message.text[:botNicKLength].lower() == botNick else None
Expand Down

0 comments on commit 4c42500

Please sign in to comment.