mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-06 13:43:49 +01:00
Fix impersonate for chat-instruct
This commit is contained in:
parent
c1aa4590ea
commit
ded6c41cf8
|
|
@ -263,7 +263,7 @@ def generate_chat_prompt(user_input, state, **kwargs):
|
|||
|
||||
messages.append({"role": "user", "content": user_input})
|
||||
|
||||
if impersonate:
|
||||
if impersonate and state['mode'] != 'chat-instruct':
|
||||
messages.append({"role": "user", "content": "fake user message replace me"})
|
||||
|
||||
def make_prompt(messages):
|
||||
|
|
|
|||
Loading…
Reference in a new issue