mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
fixed pkg\provider\entities.py\get_content_mirai_message_chain中ce.type图片类型不正确的异常
This commit is contained in:
parent
45a10b4ac7
commit
21966bfb69
|
@ -95,7 +95,7 @@ class Message(pydantic.BaseModel):
|
|||
for ce in self.content:
|
||||
if ce.type == 'text':
|
||||
mc.append(mirai.Plain(ce.text))
|
||||
elif ce.type == 'image':
|
||||
elif ce.type == 'image_url':
|
||||
if ce.image_url.url.startswith("http"):
|
||||
mc.append(mirai.Image(url=ce.image_url.url))
|
||||
else: # base64
|
||||
|
|
Loading…
Reference in New Issue
Block a user