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")