mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Start API when "api" checkbox is checked
This commit is contained in:
parent
a85ce5f055
commit
9be48e83a9
@ -51,6 +51,8 @@ def set_interface_arguments(extensions, bool_active):
|
|||||||
setattr(shared.args, k, False)
|
setattr(shared.args, k, False)
|
||||||
for k in bool_active:
|
for k in bool_active:
|
||||||
setattr(shared.args, k, True)
|
setattr(shared.args, k, True)
|
||||||
|
if k == 'api':
|
||||||
|
shared.add_extension('openai', last=True)
|
||||||
|
|
||||||
shared.need_restart = True
|
shared.need_restart = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user