From bb2c4707c4c72b9d0fee8b6c1428c87c870e20a8 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:08:02 -0800 Subject: [PATCH] API: fix bug after previous commit --- extensions/openai/completions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/openai/completions.py b/extensions/openai/completions.py index 26017f37..c5ef36e6 100644 --- a/extensions/openai/completions.py +++ b/extensions/openai/completions.py @@ -235,9 +235,9 @@ def chat_completions_common(body: dict, is_legacy: bool = False, stream=False) - # Chat character character = body['character'] or shared.settings['character'] character = "Assistant" if character == "None" else character - name1 = body['name1'] or shared.settings['name1'] + name1 = body['user_name'] or shared.settings['name1'] name1, name2, _, greeting, context = load_character_memoized(character, name1, '') - name2 = body['name2'] or name2 + name2 = body['bot_name'] or name2 context = body['context'] or context greeting = body['greeting'] or greeting