From 61279f8b3d6419250c03eaced085477e94053a16 Mon Sep 17 00:00:00 2001 From: webjoin111 <455457521@qq.com> Date: Mon, 8 Dec 2025 12:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(llm):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=94=9F=E6=88=90=E6=A8=A1=E5=9E=8B=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E9=A2=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/services/llm/api.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zhenxun/services/llm/api.py b/zhenxun/services/llm/api.py index 1824f67b..3bb45897 100644 --- a/zhenxun/services/llm/api.py +++ b/zhenxun/services/llm/api.py @@ -302,12 +302,6 @@ async def _generate_image_from_message( messages = await normalize_to_llm_messages(message) async with await get_model_instance(model) as model_instance: - if not model_instance.can_generate_images: - raise LLMException( - f"模型 '{model_instance.provider_name}/{model_instance.model_name}'" - f"不支持图片生成", - code=LLMErrorCode.CONFIGURATION_ERROR, - ) response = await model_instance.generate_response(messages, config=config)