From 65cbd5d6a6cb3a73f122040347259a89b22777d7 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 2 Mar 2026 07:19:21 +0300 Subject: Fix (ctrl+v): trim loaded mark from the model --- popups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'popups.go') diff --git a/popups.go b/popups.go index d50281f..471a8d9 100644 --- a/popups.go +++ b/popups.go @@ -160,7 +160,7 @@ func showAPILinkSelectionPopup() { newModelList := getModelListForAPI(cfg.CurrentAPI) // Ensure chatBody.Model is in the new list; if not, set to first available model if len(newModelList) > 0 && !slices.Contains(newModelList, chatBody.Model) { - chatBody.Model = newModelList[0] + chatBody.Model = strings.TrimPrefix(newModelList[0], models.LoadedMark) cfg.CurrentModel = chatBody.Model } pages.RemovePage("apiLinkSelectionPopup") -- cgit v1.2.3