fix(webui): open the preset for blocked image input (#6724)
This commit is contained in:
1 parent
607de63fb4
commit
ce12bfdd0d
38 files changed
+430
-78
No files matched your search
@@ -3012,3 +3012,6 @@ def test_preset_image_capability_persists_and_preserves_unrelated_edits(tmp_path
|
||||
assert json.loads(config_path.read_text(encoding="utf-8"))["modelPresets"]["Text"]["supportsImages"] is True
|
||||
defaulted = create_model_configuration({"name": ["Default vision"], "provider": ["openai"], "model": ["gpt-4.1"]})
|
||||
assert next(row for row in defaulted["model_presets"] if row["name"] == "Default vision")["supports_images"] is True
|
||||
assert defaulted["image_fallback_configured"] is False
|
||||
order = update_model_call_order({"order": [json.dumps(["Text", "Default vision"])]})
|
||||
assert order["image_fallback_configured"] is True
|
||||
@@ -156,6 +156,7 @@ def test_model_domain_owns_dto_and_config_updates() -> None:
|
||||
"model_presets",
|
||||
"model_call_order",
|
||||
"model_call_order_editable",
|
||||
"image_fallback_configured",
|
||||
"model_configuration_migratable",
|
||||
"model_api_resolution_supported",
|
||||
"provider_api_configuration_supported",
|
||||
|
||||
Reference in new issue
Block a user