🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-25 05:53:49 +00:00
parent 4ae228757e
commit 99f36fca16
3 changed files with 8 additions and 4 deletions

View File

@@ -284,7 +284,9 @@ async def image_to_stream(image_base64: str, stream_id: str, storage_message: bo
return await _send_to_target("image", image_base64, stream_id, "", typing=False, storage_message=storage_message)
async def command_to_stream(command: Union[str, dict], stream_id: str, storage_message: bool = True, display_message: str = "") -> bool:
async def command_to_stream(
command: Union[str, dict], stream_id: str, storage_message: bool = True, display_message: str = ""
) -> bool:
"""向指定流发送命令
Args:
@@ -295,7 +297,9 @@ async def command_to_stream(command: Union[str, dict], stream_id: str, storage_m
Returns:
bool: 是否发送成功
"""
return await _send_to_target("command", command, stream_id, display_message, typing=False, storage_message=storage_message)
return await _send_to_target(
"command", command, stream_id, display_message, typing=False, storage_message=storage_message
)
async def custom_to_stream(

View File

@@ -322,7 +322,7 @@ class BaseAction(ABC):
command=command_data,
stream_id=self.chat_id,
storage_message=storage_message,
display_message=display_message
display_message=display_message,
)
if success:

View File

@@ -162,7 +162,7 @@ class BaseCommand(ABC):
command=command_data,
stream_id=chat_stream.stream_id,
storage_message=storage_message,
display_message=display_message
display_message=display_message,
)
if success: