ruff
This commit is contained in:
@@ -73,7 +73,7 @@ class ChatStreamImpressionTool(BaseTool):
|
||||
)
|
||||
except AttributeError:
|
||||
# 降级处理
|
||||
available_models: ClassVar = [
|
||||
available_models = [
|
||||
attr
|
||||
for attr in dir(model_config.model_task_config)
|
||||
if not attr.startswith("_") and attr != "model_dump"
|
||||
@@ -153,7 +153,7 @@ class ChatStreamImpressionTool(BaseTool):
|
||||
await self._update_stream_impression_in_db(stream_id, final_impression)
|
||||
|
||||
# 构建返回信息
|
||||
updates: ClassVar = []
|
||||
updates = []
|
||||
if final_impression.get("stream_impression_text"):
|
||||
updates.append(f"印象: {final_impression['stream_impression_text'][:50]}...")
|
||||
if final_impression.get("stream_chat_style"):
|
||||
|
||||
@@ -182,7 +182,7 @@ class UnifiedScheduler:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
logger.info(f"统一调度器已停止")
|
||||
logger.info("统一调度器已停止")
|
||||
self._tasks.clear()
|
||||
self._event_subscriptions.clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user