feat(generation): score articles with selected relevance model (#48)

This commit is contained in:
2026-11-25 18:09:36 +01:00
parent c5b8d0d4da
commit 90dd2a65d2
53 changed files with 1639 additions and 105 deletions

View File

@ -25,6 +25,7 @@ func TestPreferencesEndpointsExistAndRejectInvalidValues(t *testing.T) {
want int
}{
{http.MethodGet, "", http.StatusOK},
{http.MethodPut, `{"language":"fr","ranking_mode":"title","ranking_model_id":"not-a-uuid"}`, http.StatusBadRequest},
{http.MethodPut, `{"language":"de","ranking_mode":"title"}`, http.StatusBadRequest},
{http.MethodPut, `{"language":"fr","ranking_mode":"unknown"}`, http.StatusBadRequest},
} {