diff --git a/extensions/openai/completions.py b/extensions/openai/completions.py index 44c1df86..24f87904 100644 --- a/extensions/openai/completions.py +++ b/extensions/openai/completions.py @@ -207,6 +207,9 @@ def convert_history(history): elif role == "system": system_message = content + if current_message: + chat_dialogue.append([current_message, current_reply]) # Ensure the last message is added. System prompt is now enabled. Tested. + if not user_input_last: user_input = ""