diff --git a/modules/ui_session.py b/modules/ui_session.py index 13610fcd..640b341c 100644 --- a/modules/ui_session.py +++ b/modules/ui_session.py @@ -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