mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Update extensions/openai/completions.py
This will ensure the last message is added. It also enable system prompt to be processed. Now OAI API compatible can user their system prompt.
This commit is contained in:
parent
abe5ddc883
commit
abaca1e0a9
@ -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 = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user