fix: Ruff

This commit is contained in:
墨梓柒 committed 2025-04-25 22:59:07 +08:00
1 parent c420e1597c
commit be1ba83319
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -371,7 +371,7 @@ class DirectMessageSender:
# 处理消息
await message.process()
message_json = message.to_dict()
_message_json = message.to_dict()
# 发送消息
try:
+1 -1
View File
@@ -1,7 +1,7 @@
import asyncio
import time
import traceback
from typing import List, Optional, Dict, Any, Set, Deque
from typing import List, Optional, Dict, Any, Deque
from collections import deque
from src.plugins.chat.message import MessageRecv, BaseMessageInfo, MessageThinking, MessageSending
from src.plugins.chat.message import MessageSet, Seg # Local import needed after move
@@ -49,7 +49,7 @@ class HeartFCGenerator:
arousal_multiplier = MoodManager.get_instance().get_arousal_multiplier()
with Timer() as t_generate_response:
with Timer() as _generate_response:
current_model = self.model_normal
current_model.temperature = global_config.llm_normal["temp"] * arousal_multiplier # 激活度越高,温度越高
model_response = await self._generate_response_with_model(