fix:一些小修复

This commit is contained in:
SengokuCola
2025-04-02 00:05:33 +08:00
parent 94ee829e2a
commit 13c47d5d12
4 changed files with 16 additions and 7 deletions

3
src/plugins/P.F.C/pfc.py Normal file
View File

@@ -0,0 +1,3 @@
#Programmable Friendly Conversationalist
#Prefrontal cortex

View File

@@ -134,8 +134,10 @@ class ReasoningChat:
messageinfo = message.message_info
if groupinfo.group_id not in global_config.talk_allowed_groups:
return
if groupinfo == None and global_config.enable_friend_chat:#如果是私聊
pass
elif groupinfo.group_id not in global_config.talk_allowed_groups:
return
# logger.info("使用推理聊天模式")

View File

@@ -145,9 +145,10 @@ class ThinkFlowChat:
userinfo = message.message_info.user_info
messageinfo = message.message_info
if groupinfo.group_id not in global_config.talk_allowed_groups:
return
# logger.info("使用思维流聊天模式")
if groupinfo == None and global_config.enable_friend_chat:#如果是私聊
pass
elif groupinfo.group_id not in global_config.talk_allowed_groups:
return
# 创建聊天流
chat = await chat_manager.get_or_create_stream(