API: Add allowed_tokens support

This is the opposite of banned tokens. Exllama specific implementation
of #181.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-08-29 21:37:55 -04:00
parent 10d9419f90
commit 21712578cf
3 changed files with 25 additions and 2 deletions

View File

@@ -126,6 +126,10 @@ banned_tokens:
override: []
force: false
additive: false
allowed_tokens:
override: []
force: false
additive: false
# MARK: CFG scale
cfg_scale: