feat(product-suite): decouple ai writing gateway
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user