Skip to content

Commit

Permalink
🐞 Debug: Add original text log output when markdown rendering error
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Mar 21, 2024
1 parent 868d75f commit 58f3378
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ async def getChatGPT(update, context, title, robot, message, chatid, messageid):
except Exception as e:
print('\033[31m')
traceback.print_exc()
print(tmpresult)
print('\033[0m')
if config.API:
robot.reset(convo_id=str(chatid), system_prompt=config.systemprompt)
Expand Down

0 comments on commit 58f3378

Please sign in to comment.