From 4af866079c3f21eab12b02c3158567539ca40c50 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 6 Feb 2026 12:42:06 +0300 Subject: Chore: linter complaints --- props_table.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'props_table.go') diff --git a/props_table.go b/props_table.go index d037bb0..50c8886 100644 --- a/props_table.go +++ b/props_table.go @@ -313,11 +313,12 @@ func makePropsTable(props map[string]float32) *tview.Table { logger.Warn("empty options list for", "label", label, "api", cfg.CurrentAPI, "localModelsLen", len(LocalModels), "orModelsLen", len(ORFreeModels)) message := "No options available for " + label if label == "Select a model" { - if strings.Contains(cfg.CurrentAPI, "openrouter.ai") { + switch { + case strings.Contains(cfg.CurrentAPI, "openrouter.ai"): message = "No OpenRouter models available. Check token and connection." - } else if strings.Contains(cfg.CurrentAPI, "api.deepseek.com") { + case strings.Contains(cfg.CurrentAPI, "api.deepseek.com"): message = "DeepSeek models should be available. Please report bug." - } else { + default: message = "No llama.cpp models loaded. Ensure llama.cpp server is running with models." } } -- cgit v1.2.3