Skip to content

Conversation

@ErixM
Copy link
Contributor

@ErixM ErixM commented Nov 18, 2025

Description

Ciao! Thanks for this project, it makes everything so easy to run, finally I can fully use my new graphics card!

This PR fixes issues with TTS models not appearing in the UI dropdown and the dropdown not maintaining selection state.

Changes Made

  1. Fixed TTS model detection in model_config.go:

    • Removed FLAG_ANY from GetAllModelConfigUsecases() map (line 537) - it was causing false matches due to bitwise operations with value 0
    • Added kokoro and cuda12-kokoro backends to TTS backends list in GuessUsecases() (line 640)
  2. Fixed dropdown selection state in tts.html:

    • Moved Alpine.js x-data to parent div and initialized with current model value
    • Changed from x-init watcher to @change event handler for better reactivity

Testing

  • Verified TTS models now appear in dropdown at /tts/
  • Confirmed dropdown maintains selection when navigating to model-specific pages like /tts/kokoro

Notes for Reviewers

The main issue was twofold:

  1. FLAG_ANY (value 0) in the usecases map caused HasUsecases() to always return true due to bitwise AND operations
  2. Kokoro backends weren't recognized as TTS backends in the usecase guessing logic
  3. Alpine.js reactive binding wasn't properly initialized with the current model

  • Signed commits

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for localai failed.

Name Link
🔨 Latest commit e65069c
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/691c791c5c5383000864d956

mudler
mudler previously approved these changes Nov 18, 2025
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler mudler merged commit 2709220 into mudler:master Nov 18, 2025
3 of 10 checks passed
@mudler mudler added the bug Something isn't working label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants