🐛v0.1.2,依赖项修改,修复非可处理图片模型未去除marsho字符串

This commit is contained in:
2024-10-02 10:49:58 +08:00
parent f3904c9dd2
commit fc25a5c184
3 changed files with 5 additions and 7 deletions

View File

@ -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