From 4f6000a43ad2ee019a799c5b5154af9f853e2b83 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 2 Mar 2026 11:25:20 +0300 Subject: Enha: check if model has vision before giving it vision tools --- popups.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'popups.go') diff --git a/popups.go b/popups.go index 471a8d9..9998daa 100644 --- a/popups.go +++ b/popups.go @@ -143,6 +143,7 @@ func showAPILinkSelectionPopup() { apiListWidget.SetSelectedFunc(func(index int, mainText string, secondaryText string, shortcut rune) { // Update the API in config cfg.CurrentAPI = mainText + UpdateToolCapabilities() // Update model list based on new API // Helper function to get model list for a given API (same as in props_table.go) getModelListForAPI := func(api string) []string { @@ -162,6 +163,7 @@ func showAPILinkSelectionPopup() { if len(newModelList) > 0 && !slices.Contains(newModelList, chatBody.Model) { chatBody.Model = strings.TrimPrefix(newModelList[0], models.LoadedMark) cfg.CurrentModel = chatBody.Model + UpdateToolCapabilities() } pages.RemovePage("apiLinkSelectionPopup") app.SetFocus(textArea) -- cgit v1.2.3