mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
Sort model configs in admin menu (#1357)
This commit is contained in:
parent
4aa09bd1d4
commit
c0a16b5d4f
1 changed files with 1 additions and 1 deletions
|
@ -2408,7 +2408,7 @@ Enter Prompt:<br>
|
|||
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')):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue