diff --git a/modules/shared.py b/modules/shared.py index e531cd3c..356a2bb9 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -32,7 +32,7 @@ need_restart = False settings = { 'show_controls': True, 'start_with': '', - 'mode': 'chat-instruct', + 'mode': 'instruct', 'chat_style': 'cai-chat', 'chat-instruct_command': 'Continue the chat dialogue below. Write a single reply for the character "<|character|>".\n\n<|prompt|>', 'prompt-default': 'QA', diff --git a/modules/ui_chat.py b/modules/ui_chat.py index a830abfb..b823b8e5 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -88,7 +88,7 @@ def create_ui(): shared.gradio['start_with'] = gr.Textbox(label='Start reply with', placeholder='Sure thing!', value=shared.settings['start_with'], elem_classes=['add_scrollbar']) with gr.Row(): - shared.gradio['mode'] = gr.Radio(choices=['chat', 'chat-instruct', 'instruct'], value=shared.settings['mode'] if shared.settings['mode'] in ['chat', 'chat-instruct'] else None, label='Mode', info='Defines how the chat prompt is generated. In instruct and chat-instruct modes, the instruction template Parameters > Instruction template is used.', elem_id='chat-mode') + shared.gradio['mode'] = gr.Radio(choices=['instruct', 'chat-instruct', 'chat'], value=shared.settings['mode'] if shared.settings['mode'] in ['chat', 'chat-instruct'] else None, label='Mode', info='Defines how the chat prompt is generated. In instruct and chat-instruct modes, the instruction template Parameters > Instruction template is used.', elem_id='chat-mode') with gr.Row(): shared.gradio['chat_style'] = gr.Dropdown(choices=utils.get_available_chat_styles(), label='Chat style', value=shared.settings['chat_style'], visible=shared.settings['mode'] != 'instruct') diff --git a/settings-template.yaml b/settings-template.yaml index 0343df0a..94a5c034 100644 --- a/settings-template.yaml +++ b/settings-template.yaml @@ -1,6 +1,6 @@ show_controls: true start_with: '' -mode: chat-instruct +mode: instruct chat_style: cai-chat chat-instruct_command: |- Continue the chat dialogue below. Write a single reply for the character "<|character|>".