Start API when "api" checkbox is checked
This commit is contained in:
parent
a85ce5f055
commit
9be48e83a9
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue