diff --git a/astrbot/core/platform/sources/satori/satori_adapter.py b/astrbot/core/platform/sources/satori/satori_adapter.py index 46f9a4e0f..10912dc8e 100644 --- a/astrbot/core/platform/sources/satori/satori_adapter.py +++ b/astrbot/core/platform/sources/satori/satori_adapter.py @@ -142,7 +142,12 @@ async def connect_websocket(self): raise ValueError(f"WebSocket URL必须以ws://或wss://开头: {self.endpoint}") try: - websocket = await connect(self.endpoint, additional_headers={}) + websocket = await connect( + self.endpoint, + additional_headers={}, + max_size=10 * 1024 * 1024, # 10MB + ) + self.ws = websocket await asyncio.sleep(0.1)