From c31b0f15a77c7d9d2aea6fffed4df2bfc5d119df Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 2 May 2023 23:07:07 -0300 Subject: [PATCH] Remove some spaces --- extensions/openai/script.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/extensions/openai/script.py b/extensions/openai/script.py index d1e469f3..58247917 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -26,8 +26,6 @@ embedding_model = None 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. - - def default(dic, key, default): val = dic.get(key, default) if type(val) != type(default): @@ -124,7 +122,6 @@ class Handler(BaseHTTPRequestHandler): cmpl_id = "conv-%d" % (created_time) # Try to use openai defaults or map them to something with the same intent - stopping_strings = default(shared.settings, 'custom_stopping_strings', []) if 'stop' in body: if isinstance(body['stop'], str):