mirror of https://github.com/Mai-with-u/MaiBot.git
修复提示
parent
5345eb725a
commit
8c78cf59ba
|
|
@ -1,5 +1,3 @@
|
|||
# nickname_processor.py (多线程版本 - 使用全局 config - 修复 Race Condition on person_id)
|
||||
|
||||
import asyncio
|
||||
import traceback
|
||||
import threading
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
# GroupNickname/nickname_utils.py
|
||||
import random
|
||||
import time
|
||||
from typing import List, Dict, Tuple, Optional
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue