mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-07 15:43:49 +00:00
Add tools refresh button and _tool_turn comment
This commit is contained in:
parent
cf9ad8eafe
commit
0d62038710
2 changed files with 4 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ def create_ui():
|
|||
|
||||
from modules.tool_use import get_available_tools
|
||||
shared.gradio['selected_tools'] = gr.CheckboxGroup(choices=get_available_tools(), value=[], label='Tools', info='Functions the model can call during generation.')
|
||||
ui.create_refresh_button(shared.gradio['selected_tools'], lambda: None, lambda: {'choices': get_available_tools()}, 'refresh-button')
|
||||
|
||||
gr.HTML("<div class='sidebar-vertical-separator'></div>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue