mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
multiuser fixes
This commit is contained in:
parent
94a5a27b85
commit
4ec12756b3
1 changed files with 2 additions and 0 deletions
|
@ -1951,6 +1951,8 @@ Enter Prompt:<br>
|
||||||
|
|
||||||
reqblocking = False
|
reqblocking = False
|
||||||
muint = int(args.multiuser)
|
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)
|
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
|
#backwards compatibility for up to 7 concurrent requests, use default limit of 7 if multiuser set to 1
|
||||||
if muint > 0 and requestsinqueue < multiuserlimit:
|
if muint > 0 and requestsinqueue < multiuserlimit:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue