fix: no need to send when message is empty

This commit is contained in:
zhayujie
2024-03-20 12:07:05 +08:00
parent 74ebbdd761
commit c22c7102d5
2 changed files with 7 additions and 4 deletions

View File

@@ -92,6 +92,7 @@ class LinkAIBot(Bot):
"frequency_penalty": conf().get("frequency_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
"presence_penalty": conf().get("presence_penalty", 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
"session_id": session_id,
"sender_id": session_id,
"channel_type": conf().get("channel_type", "wx")
}
try: