Enha: moke (loaded) indicator prefix instead of a suffix

This commit is contained in:
Grail Finder
2026-02-22 07:41:09 +03:00
parent 2c694e2b2b
commit 86260e218c
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func showModelSelectionPopup() {
}
modelListWidget.SetSelectedFunc(func(index int, mainText string, secondaryText string, shortcut rune) {
// Strip "(loaded)" suffix if present for local llama.cpp models
modelName := strings.TrimSuffix(mainText, " (loaded)")
modelName := strings.TrimPrefix(mainText, "(loaded) ")
// Update the model in both chatBody and config
chatBody.Model = modelName
cfg.CurrentModel = chatBody.Model