Start API when "api" checkbox is checked

This commit is contained in:
oobabooga 2023-11-15 16:35:47 -08:00
parent a85ce5f055
commit 9be48e83a9

View file

@ -51,6 +51,8 @@ def set_interface_arguments(extensions, bool_active):
setattr(shared.args, k, False)
for k in bool_active:
setattr(shared.args, k, True)
if k == 'api':
shared.add_extension('openai', last=True)
shared.need_restart = True