Commit graph

9 commits

Author SHA1 Message Date
Roland Tannous
9a818e7155 studio: add normalize_gguf_quantization_method helper + tests
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).
2026-04-14 22:31:20 +04:00
Roland Tannous
47654cb91c Final cleanup 2026-03-12 18:28:04 +00:00
Roland Tannous
a2baf80511 Update license headers 2026-03-12 17:23:10 +00:00
Roland Tannous
d882678fe4 Add AGPL-3.0 SPDX headers to all source files 2026-03-09 20:17:45 +00:00
samit
86e94b5844 exposed trust_remote_code through the UI 2026-03-08 16:28:56 -07:00
Manan17
c7b7ecab4f Adding metadata for checkpoints 2026-02-16 23:46:17 +00:00
Roland Tannous
f0298edeb8 refactor: move checkpoint scanning to utils/models and /checkpoints endpoint to models router 2026-02-16 09:32:11 +00:00
Manan17
19276ae60b Fixing the get checkpoint api 2026-02-16 04:47:28 +00:00
sshah229
40bfe42974 added the pydantic models and routes for export 2026-02-11 18:34:12 -07:00