feat(product-suite): decouple ai writing gateway
This commit is contained in:
@@ -541,6 +541,7 @@ class AITests(TempDirMixin, unittest.TestCase):
|
||||
def test_cmhub_analyze_product_images_uses_vision_alias_and_safe_metadata(self):
|
||||
with self.make_temp_dir() as temp_dir:
|
||||
cfg, key_path = self._cmhub_config(temp_dir)
|
||||
cfg["ai"]["backend"] = "direct"
|
||||
first = os.path.join(temp_dir, "first.png")
|
||||
second = os.path.join(temp_dir, "second.jpg")
|
||||
with open(first, "wb") as fh:
|
||||
@@ -602,6 +603,7 @@ class AITests(TempDirMixin, unittest.TestCase):
|
||||
def test_cmhub_analyze_product_images_requires_vision_alias_and_local_limits(self):
|
||||
with self.make_temp_dir() as temp_dir:
|
||||
cfg, key_path = self._cmhub_config(temp_dir)
|
||||
cfg["ai"]["backend"] = "direct"
|
||||
source = os.path.join(temp_dir, "source.jpg")
|
||||
with open(source, "wb") as fh:
|
||||
fh.write(b"source")
|
||||
|
||||
Reference in New Issue
Block a user