Update claude_ai_bot.py

This commit is contained in:
resphina
2023-09-03 19:12:27 +08:00
committed by GitHub
parent f7cd348912
commit 9c3a27894f

View File

@@ -192,7 +192,7 @@ class ClaudeAIBot(Bot, OpenAIImage):
reply_content = ''.join(completions) reply_content = ''.join(completions)
if "rate limi" in reply_content: if "rate limi" in reply_content:
logger.error("rate limit error: 对话达到系统速率限制与cladue同步请进入官网查看解除限制时间") logger.error("rate limit error: The conversation has reached the system speed limit and is synchronized with Cladue. Please go to the official website to check the lifting time")
return Reply(ReplyType.ERROR, "对话达到系统速率限制与cladue同步请进入官网查看解除限制时间") return Reply(ReplyType.ERROR, "对话达到系统速率限制与cladue同步请进入官网查看解除限制时间")
logger.info(f"[CLAUDE] reply={reply_content}, total_tokens=invisible") logger.info(f"[CLAUDE] reply={reply_content}, total_tokens=invisible")
self.sessions.session_reply(reply_content, session_id, 100) self.sessions.session_reply(reply_content, session_id, 100)