From 4ec12756b3f6588deccbdbc7d5a10c2a2da1f2e3 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 26 Oct 2024 09:33:11 +0800 Subject: [PATCH] multiuser fixes --- koboldcpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index b7126d47a..891e206ad 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -1951,6 +1951,8 @@ Enter Prompt:
reqblocking = False muint = int(args.multiuser) + if muint<=0 and ((args.whispermodel and args.whispermodel!="") or (args.sdmodel and args.sdmodel!="")): + muint = 2 # this prevents errors when using voice/img together with text multiuserlimit = ((muint-1) if muint > 1 else 6) #backwards compatibility for up to 7 concurrent requests, use default limit of 7 if multiuser set to 1 if muint > 0 and requestsinqueue < multiuserlimit: