mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-27 02:44:49 +01:00
Make 'instruct' the default chat mode
This commit is contained in:
parent
e99c20bcb0
commit
bfbde73409
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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|>".
|
||||
|
|
|
|||
Loading…
Reference in a new issue