From 9be48e83a981bc183b7f886ff143b25efef361d8 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:35:47 -0800 Subject: [PATCH] Start API when "api" checkbox is checked --- modules/ui_session.py | 2 ++ 1 file changed, 2 insertions(+) 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