File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,11 @@ Downloaded from https://github.com/f/awesome-chatgpt-prompts."
521
521
(setq chatgpt-shell-models (chatgpt-shell--make-default-models))
522
522
(message " Reloaded %d models " (length chatgpt-shell-models)))
523
523
524
+ (defcustom chatgpt-shell-ignored-model-versions nil
525
+ " The list of model versions to ignore when swapping the model."
526
+ :type '(repeat string)
527
+ :group 'chatgpt-shell )
528
+
524
529
(defun chatgpt-shell-swap-model ()
525
530
" Swap model version from `chatgpt-shell-models' ."
526
531
(interactive )
@@ -539,7 +544,10 @@ Downloaded from https://github.com/f/awesome-chatgpt-prompts."
539
544
(format (format " %% -%d s %% s" width)
540
545
(map-elt model :provider )
541
546
(map-elt model :version )))
542
- chatgpt-shell-models))
547
+ (seq-filter (lambda (model )
548
+ (not (member (map-elt model :version )
549
+ chatgpt-shell-ignored-model-versions)))
550
+ chatgpt-shell-models)))
543
551
(selection (nth 1 (split-string (completing-read " Model version: "
544
552
models nil t )))))
545
553
(progn
You can’t perform that action at this time.
0 commit comments