ruff
This commit is contained in:
committed by
Windpicker-owo
parent
4a0bd5845e
commit
12c2b806a2
@@ -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"):
|
||||
|
||||
@@ -198,11 +198,11 @@ class ChatterPlanExecutor:
|
||||
}
|
||||
# 构建回复动作参数
|
||||
action_data = action_info.action_data or {}
|
||||
|
||||
|
||||
# 如果action_info中有should_quote_reply且action_data中没有,则添加到action_data中
|
||||
if action_info.should_quote_reply is not None and "should_quote_reply" not in action_data:
|
||||
action_data["should_quote_reply"] = action_info.should_quote_reply
|
||||
|
||||
|
||||
action_params = {
|
||||
"chat_id": plan.chat_id,
|
||||
"target_message": action_info.action_message,
|
||||
|
||||
Reference in New Issue
Block a user