mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-08 17:50:13 +01:00
Make bot_prefix extensions functional again
This commit is contained in:
parent
8f660aefe3
commit
8fcb4b3102
|
|
@ -306,6 +306,9 @@ def generate_chat_prompt(user_input, state, **kwargs):
|
|||
prompt = prompt.split("fake user message replace me", 1)[0]
|
||||
prompt += user_input
|
||||
|
||||
if state['mode'] in ['chat', 'chat-instruct'] and not impersonate and not _continue:
|
||||
prompt += apply_extensions('bot_prefix', "", state)
|
||||
|
||||
return prompt
|
||||
|
||||
prompt = make_prompt(messages)
|
||||
|
|
|
|||
Loading…
Reference in a new issue