From 2e2ad9ceeb90b2efffff047cc97b99f70d6146e7 Mon Sep 17 00:00:00 2001 From: leonardotrapani Date: Mon, 2 Feb 2026 10:49:42 +0100 Subject: [PATCH] use model's first supported language in integration tests --- cmd/hyprvoice/integration_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/hyprvoice/integration_test.go b/cmd/hyprvoice/integration_test.go index f421f08..9825e8a 100644 --- a/cmd/hyprvoice/integration_test.go +++ b/cmd/hyprvoice/integration_test.go @@ -64,7 +64,7 @@ func TestTranscriptionModels(t *testing.T) { } modes := getModesForModel(model) - languages := []string{"en", ""} + languages := getLanguagesForModel(model) keywordOptions := []bool{true, false} for _, mode := range modes { @@ -526,6 +526,14 @@ func getModesForModel(model provider.Model) []string { return []string{"batch"} } +func getLanguagesForModel(model provider.Model) []string { + // always test auto-detect, plus the first supported language if available + if len(model.SupportedLanguages) > 0 { + return []string{model.SupportedLanguages[0], ""} + } + return []string{""} +} + func langDisplay(lang string) string { if lang == "" { return "auto"