diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-22 07:41:09 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-22 07:41:09 +0300 |
| commit | 86260e218c8320b227d84bb3df1ba4e11779d504 (patch) | |
| tree | 756410679273ac59902d0d5e1b1fd86e814d664d | |
| parent | 2c694e2b2b76ea9a5b30dbd979731ba92cb1e3ba (diff) | |
Enha: moke (loaded) indicator prefix instead of a suffix
| -rw-r--r-- | bot.go | 4 | ||||
| -rw-r--r-- | popups.go | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -413,7 +413,7 @@ func fetchLCPModelsWithLoadStatus() ([]string, error) { for _, m := range models.Data { modelName := m.ID if m.Status.Value == "loaded" { - modelName = modelName + " (loaded)" + modelName = "(loaded) " + modelName } result = append(result, modelName) } @@ -1369,7 +1369,7 @@ func init() { var err error cfg, err = config.LoadConfig("config.toml") if err != nil { - fmt.Println("failed to load config.toml") + fmt.Println("failed to load config.toml", err) cancel() os.Exit(1) return @@ -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 |
