修复提示

pull/914/head
Bakadax 2025-05-02 01:16:35 +08:00
parent 5345eb725a
commit 8c78cf59ba
3 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,3 @@
# nickname_processor.py (多线程版本 - 使用全局 config - 修复 Race Condition on person_id)
import asyncio
import traceback
import threading

View File

@ -1,4 +1,3 @@
# GroupNickname/nickname_utils.py
import random
import time
from typing import List, Dict, Tuple, Optional

View File

@ -274,9 +274,7 @@ class PromptBuilder:
)
return None
async def _build_prompt_normal(
self, chat_stream, message_txt: str, sender_name: str = "某人"
) -> str: # 返回值改为 str
async def _build_prompt_normal(self, chat_stream, message_txt: str, sender_name: str = "某人") -> tuple[str, str]:
individuality = Individuality.get_instance()
prompt_personality = individuality.get_prompt(x_person=2, level=2)