diff --git a/core/config/model_config.go b/core/config/model_config.go index e7b4567c10af..50ac44625cb6 100644 --- a/core/config/model_config.go +++ b/core/config/model_config.go @@ -534,7 +534,8 @@ const ( func GetAllModelConfigUsecases() map[string]ModelConfigUsecases { return map[string]ModelConfigUsecases{ - "FLAG_ANY": FLAG_ANY, + // Note: FLAG_ANY is intentionally excluded from this map + // because it's 0 and would always match in HasUsecases checks "FLAG_CHAT": FLAG_CHAT, "FLAG_COMPLETION": FLAG_COMPLETION, "FLAG_EDIT": FLAG_EDIT, @@ -636,7 +637,7 @@ func (c *ModelConfig) GuessUsecases(u ModelConfigUsecases) bool { } } if (u & FLAG_TTS) == FLAG_TTS { - ttsBackends := []string{"bark-cpp", "piper", "transformers-musicgen"} + ttsBackends := []string{"bark-cpp", "piper", "transformers-musicgen", "kokoro"} if !slices.Contains(ttsBackends, c.Backend) { return false } diff --git a/core/http/views/tts.html b/core/http/views/tts.html index e16e7e551d8f..9132b74136f7 100644 --- a/core/http/views/tts.html +++ b/core/http/views/tts.html @@ -34,15 +34,14 @@