mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Rename "Send dummy message/reply" to "Insert user/assistant message"
This commit is contained in:
@@ -13,8 +13,8 @@ The hover menu (☰) that appears over the chat area contains:
|
||||
* **Continue**: makes the model attempt to continue the existing reply. In some cases, the model may simply end the existing turn immediately without generating anything new, but in other cases, it may generate a longer reply.
|
||||
* **Remove last reply**: removes the last input/output pair from the history and sends your last message back into the input field.
|
||||
* **Impersonate**: makes the model generate a new message on your behalf in the input field, taking into consideration the existing chat history.
|
||||
* **Send dummy message**: adds a new message to the chat history without causing the model to generate a reply.
|
||||
* **Send dummy reply**: adds a new reply to the chat history as if the model had generated this reply. Useful in conjunction with "Send dummy message".
|
||||
* **Insert user message**: adds a new user message to the chat history without causing the model to generate a reply.
|
||||
* **Insert assistant message**: adds a new assistant message to the chat history as if the model had generated it. Useful in conjunction with "Insert user message".
|
||||
* **Send to Notebook**: sends the entire chat prompt up to now to the Notebook tab.
|
||||
* **Show controls**: checkbox that toggles the visibility of the sidebar controls (Start reply with, Mode, Chat style, etc.). Shortcut: Ctrl+S.
|
||||
|
||||
|
||||
@@ -73,8 +73,8 @@ def create_ui():
|
||||
shared.gradio['Continue'] = gr.Button('Continue (Alt + Enter)', elem_id='Continue')
|
||||
shared.gradio['Remove last'] = gr.Button('Remove last reply (Ctrl + Shift + Backspace)', elem_id='Remove-last')
|
||||
shared.gradio['Impersonate'] = gr.Button('Impersonate (Ctrl + Shift + M)', elem_id='Impersonate')
|
||||
shared.gradio['Send dummy message'] = gr.Button('Send dummy message')
|
||||
shared.gradio['Send dummy reply'] = gr.Button('Send dummy reply')
|
||||
shared.gradio['Insert user message'] = gr.Button('Insert user message')
|
||||
shared.gradio['Insert assistant message'] = gr.Button('Insert assistant message')
|
||||
shared.gradio['send-chat-to-notebook'] = gr.Button('Send to Notebook')
|
||||
shared.gradio['show_controls'] = gr.Checkbox(value=shared.settings['show_controls'], label='Show controls (Ctrl+S)', elem_id='show-controls')
|
||||
|
||||
@@ -280,11 +280,11 @@ def create_event_handlers():
|
||||
None, None, None, js='() => document.getElementById("chat").parentNode.parentNode.parentNode.classList.remove("_generating")').then(
|
||||
None, None, None, js=f'() => {{{ui.audio_notification_js}}}')
|
||||
|
||||
shared.gradio['Send dummy message'].click(
|
||||
shared.gradio['Insert user message'].click(
|
||||
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then(
|
||||
chat.handle_send_dummy_message_click, gradio('textbox', 'interface_state'), gradio('history', 'display', 'textbox'), show_progress=False)
|
||||
|
||||
shared.gradio['Send dummy reply'].click(
|
||||
shared.gradio['Insert assistant message'].click(
|
||||
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then(
|
||||
chat.handle_send_dummy_reply_click, gradio('textbox', 'interface_state'), gradio('history', 'display', 'textbox'), show_progress=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user