summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-02 07:19:21 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-02 07:19:21 +0300
commit65cbd5d6a6cb3a73f122040347259a89b22777d7 (patch)
tree2f0ba66115efc7f407e649d578dea2b20e134f9b
parentcaac1d397ad8e21c22219708c070e5e6608b7859 (diff)
Fix (ctrl+v): trim loaded mark from the model
-rw-r--r--popups.go2
1 files changed, 1 insertions, 1 deletions
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")