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