🚨 auto fix by pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] 2025-04-01 12:58:58 +00:00
parent f368c4df2e
commit 38e79345ec

View File

@ -64,7 +64,7 @@ class MessageUtils:
if isinstance(msg, str):
if msg.startswith("base64://"):
message_list.append(Image(raw=BytesIO(base64.b64decode(msg[9:]))))
elif msg.startswith(("http://","https://")):
elif msg.startswith(("http://", "https://")):
message_list.append(Image(url=msg))
else:
message_list.append(Text(msg))