mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-02 05:19:50 +00:00
🐛v0.1.2,依赖项修改,修复非可处理图片模型未去除marsho字符串
This commit is contained in:
@ -114,7 +114,7 @@ async def marsho(
|
||||
if is_support_image_model:
|
||||
usermsg.append(TextContentItem(text=clean_text))
|
||||
else:
|
||||
usermsg += str(i.data["text"])
|
||||
usermsg += str(clean_text)
|
||||
response = await client.complete(
|
||||
messages=context.build(target.id, target.private)+[UserMessage(content=usermsg)],
|
||||
model=model_name
|
||||
|
Reference in New Issue
Block a user