Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Cover image create model selection

Abi Raja7e42b413c9e5
diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.py
index deb50cd1..9fe6edc8 100644
--- a/backend/tests/test_model_selection.py
+++ b/backend/tests/test_model_selection.py
@@ -14,7 +14,7 @@ class TestModelSelectionAllKeys:
@pytest.mark.asyncio
async def test_gemini_anthropic_create(self):
- """All keys: fixed order for four variants."""
+ """All keys text create: fixed order for four variants."""
models = await self.model_selector.select_models(
generation_type="create",
input_mode="text",
@@ -31,6 +31,25 @@ class TestModelSelectionAllKeys:
]
assert models == expected
+ @pytest.mark.asyncio
+ async def test_gemini_anthropic_create_image(self):
+ """All keys image create: fixed order for four variants."""
+ models = await self.model_selector.select_models(
+ generation_type="create",
+ input_mode="image",
+ openai_api_key="key",
+ anthropic_api_key="key",
+ gemini_api_key="key",
+ )
+
+ expected = [
+ Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
+ Llm.GPT_5_2_CODEX_HIGH,
+ Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
+ Llm.GEMINI_3_1_PRO_PREVIEW_HIGH,
+ ]
+ assert models == expected
+
@pytest.mark.asyncio
async def test_gemini_anthropic_update_text(self):
"""All keys text update: uses two fast edit variants."""