Skip to content

Commit 737ea6e

Browse files
LostRuinsNexesenex
authored andcommitted
multiuser fixes
1 parent 3ad3a56 commit 737ea6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

koboldcpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,8 @@ def do_POST(self):
22222222

22232223
reqblocking = False
22242224
muint = int(args.multiuser)
2225+
if muint<=0 and ((args.whispermodel and args.whispermodel!="") or (args.sdmodel and args.sdmodel!="")):
2226+
muint = 2 # this prevents errors when using voice/img together with text
22252227
multiuserlimit = ((muint-1) if muint > 1 else 6)
22262228
#backwards compatibility for up to 7 concurrent requests, use default limit of 7 if multiuser set to 1
22272229
if muint > 0 and requestsinqueue < multiuserlimit:

0 commit comments

Comments
 (0)