mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 18:45:09 +02:00
Remove some spaces
This commit is contained in:
parent
320fcfde4e
commit
c31b0f15a7
1 changed files with 0 additions and 3 deletions
|
@ -26,8 +26,6 @@ embedding_model = None
|
||||||
standard_stopping_strings = ['\nsystem:', '\nuser:', '\nhuman:', '\nassistant:', '\n###', ]
|
standard_stopping_strings = ['\nsystem:', '\nuser:', '\nhuman:', '\nassistant:', '\n###', ]
|
||||||
|
|
||||||
# little helper to get defaults if arg is present but None and should be the same type as default.
|
# little helper to get defaults if arg is present but None and should be the same type as default.
|
||||||
|
|
||||||
|
|
||||||
def default(dic, key, default):
|
def default(dic, key, default):
|
||||||
val = dic.get(key, default)
|
val = dic.get(key, default)
|
||||||
if type(val) != type(default):
|
if type(val) != type(default):
|
||||||
|
@ -124,7 +122,6 @@ class Handler(BaseHTTPRequestHandler):
|
||||||
cmpl_id = "conv-%d" % (created_time)
|
cmpl_id = "conv-%d" % (created_time)
|
||||||
|
|
||||||
# Try to use openai defaults or map them to something with the same intent
|
# Try to use openai defaults or map them to something with the same intent
|
||||||
|
|
||||||
stopping_strings = default(shared.settings, 'custom_stopping_strings', [])
|
stopping_strings = default(shared.settings, 'custom_stopping_strings', [])
|
||||||
if 'stop' in body:
|
if 'stop' in body:
|
||||||
if isinstance(body['stop'], str):
|
if isinstance(body['stop'], str):
|
||||||
|
|
Loading…
Reference in a new issue