mirror of https://github.com/Mai-with-u/MaiBot.git
fix
parent
c69c4b4ebc
commit
5f4b38e4dd
|
|
@ -77,7 +77,7 @@ class Conversation:
|
||||||
raise
|
raise
|
||||||
try:
|
try:
|
||||||
logger.info(f"为 {self.stream_id} 加载初始聊天记录...")
|
logger.info(f"为 {self.stream_id} 加载初始聊天记录...")
|
||||||
initial_messages = await get_raw_msg_before_timestamp_with_chat( #
|
initial_messages = get_raw_msg_before_timestamp_with_chat( #
|
||||||
chat_id=self.stream_id,
|
chat_id=self.stream_id,
|
||||||
timestamp=time.time(),
|
timestamp=time.time(),
|
||||||
limit=30, # 加载最近30条作为初始上下文,可以调整
|
limit=30, # 加载最近30条作为初始上下文,可以调整
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue