fixed dumping method lalala bebebe

This commit is contained in:
shinrei
2025-07-01 19:05:55 +00:00
parent 26339fb41b
commit 955550e3bf

View File

@@ -13,7 +13,7 @@ class SolarisClient:
)
async def send_messages(self, messages: list[InputMessage]) -> list[OutputMessage]:
data = json.dumps(
[asdict(msg) for msg in messages], # хм а asdict с датаклассов ваще можно юзать с НЕ датакласами но чем-то датаклассоподобным
[msg.model_dump() for msg in messages],
ensure_ascii=True
)
resp = await self.chat.send_message(