From d6814d7c155a15e7af840cd7f9c9d6accb084e7b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:54:42 -0700 Subject: [PATCH] Fix a bug in the API (closes #4027) --- extensions/api/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/api/util.py b/extensions/api/util.py index 499706ca..0b840155 100644 --- a/extensions/api/util.py +++ b/extensions/api/util.py @@ -67,7 +67,7 @@ def build_parameters(body, chat=False): if str(instruction_template) == "None": instruction_template = "Vicuna-v1.1" - name1, name2, _, greeting, context, _ = load_character_memoized(character, str(body.get('your_name', shared.settings['name1'])), shared.settings['name2'], instruct=False) + name1, name2, _, greeting, context, _ = load_character_memoized(character, str(body.get('your_name', shared.settings['name1'])), '', instruct=False) name1_instruct, name2_instruct, _, _, context_instruct, turn_template = load_character_memoized(instruction_template, '', '', instruct=True) generate_params.update({ 'mode': str(body.get('mode', 'chat')),