Introduce a pure helper that coerces Union[str, List[str]] inputs to a lowercase, deduplicated list, rejecting empty lists via ValueError. The ExportGGUFRequest.quantization_method field type is widened to Union[str, List[str]] to accept batch inputs without breaking legacy single-format callers. The helper is the single point of normalization for the GGUF export API boundary; routes/export.py will call it in the next commit. Hermetic pytest at studio/backend/tests/test_export_gguf_batching.py covers string-to-list wrapping, list lowercasing, order-preserving dedup, empty-list rejection, and the three Pydantic-integration paths (default, string input, list input). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_anthropic_messages.py | ||
| test_cache_case_resolution.py | ||
| test_data_recipe_seed.py | ||
| test_export_gguf_batching.py | ||
| test_gpu_selection.py | ||
| test_gpu_selection_sandbox.py | ||
| test_kv_cache_estimation.py | ||
| test_models_get_model_config_case_resolution.py | ||
| test_native_context_length.py | ||
| test_responses_api.py | ||
| test_studio_api.py | ||
| test_trained_model_scan.py | ||
| test_transformers_version.py | ||
| test_utils.py | ||
| test_vision_cache.py | ||
| test_vram_estimation.py | ||