From 38e79345ecdc8e980ee5952292d3e5b474c06449 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:58:58 +0000 Subject: [PATCH] :rotating_light: auto fix by pre-commit hooks --- zhenxun/utils/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/utils/message.py b/zhenxun/utils/message.py index a0cb9699..bc8028b6 100644 --- a/zhenxun/utils/message.py +++ b/zhenxun/utils/message.py @@ -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))