From c0a16b5d4f13037c38c8ff2fd50e70ffc484b7f7 Mon Sep 17 00:00:00 2001 From: Roman Garanin Date: Sun, 9 Feb 2025 05:53:52 +0100 Subject: [PATCH] Sort model configs in admin menu (#1357) --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 71b7bf78b..7faa80914 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -2408,7 +2408,7 @@ Enter Prompt:
opts = [] if args.admin and args.admindir and os.path.exists(args.admindir) and self.check_header_password(args.adminpassword): dirpath = os.path.abspath(args.admindir) - opts = [f for f in os.listdir(dirpath) if f.endswith(".kcpps") and os.path.isfile(os.path.join(dirpath, f))] + opts = [f for f in sorted(os.listdir(dirpath)) if f.endswith(".kcpps") and os.path.isfile(os.path.join(dirpath, f))] response_body = (json.dumps(opts).encode()) elif self.path.endswith(('/api/extra/perf')):