Minor style change

This commit is contained in:
oobabooga 2023-11-18 21:11:04 -08:00
parent 5fcee696ea
commit ab94f0d9bf

View File

@ -96,6 +96,7 @@ def generate_chat_prompt(user_input, state, **kwargs):
context_instruct = context_instruct.replace('<|system-message|>', state['custom_system_message']) context_instruct = context_instruct.replace('<|system-message|>', state['custom_system_message'])
else: else:
context_instruct = context_instruct.replace('<|system-message|>', state['system_message']) context_instruct = context_instruct.replace('<|system-message|>', state['system_message'])
wrapper += context_instruct wrapper += context_instruct
wrapper += all_substrings['instruct']['user_turn'].replace('<|user-message|>', command) wrapper += all_substrings['instruct']['user_turn'].replace('<|user-message|>', command)
wrapper += all_substrings['instruct']['bot_turn_stripped'] wrapper += all_substrings['instruct']['bot_turn_stripped']