mioku-plugin-chat 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/configs/base.ts CHANGED
@@ -4,4 +4,5 @@ export const BASE_CONFIG = {
4
4
  historyCount: 100,
5
5
  maxIterations: 20,
6
6
  enableMediaRecognition: true,
7
+ ignorePrivateChat: true,
7
8
  };
@@ -39,6 +39,7 @@ export function createMessageHandler(
39
39
  ? Number(e.group_id)
40
40
  : undefined;
41
41
  const cfg = await getConfig(groupId);
42
+ if (!isGroup && cfg.ignorePrivateChat) return;
42
43
  if (!cfg.model && !cfg.apiKey) return;
43
44
  if (!e?.message || !Array.isArray(e.message)) return;
44
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mioku-plugin-chat",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "AI 智能聊天插件",
5
5
  "main": "index.ts",
6
6
  "type": "module",
package/types.ts CHANGED
@@ -174,6 +174,7 @@ export interface ChatConfig {
174
174
  multimodalWorkingModel: string;
175
175
  isMultimodal: boolean;
176
176
  enableMediaRecognition: boolean;
177
+ ignorePrivateChat: boolean;
177
178
  nicknames: string[];
178
179
  persona: string;
179
180
  maxContextTokens: number;