feat(product-suite): decouple ai writing gateway

This commit is contained in:
chengma
2026-07-23 10:42:55 +08:00
parent f7c9d761ee
commit 3d4976913e
10 changed files with 183 additions and 29 deletions
-2
View File
@@ -525,8 +525,6 @@ class ProductSuiteAiWriteWorker(BaseWorker):
def execute(self):
if self.should_cancel():
return {"cancelled": True}
if appconfig.ai_backend(self.config) != "cmhub":
raise ValueError("商品套图AI帮写仅支持默认网关,请到⑤设置切换后再使用")
result = ai.analyze_product_images(
self.instruction,
self.context,