File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11from functools import cache
22from typing import Generic , Iterator , TypeVar
33
4+ from django .conf import settings
5+
46from llmstack .common .utils .module_loader import get_all_sub_classes
57from llmstack .connections .models import Connection , ConnectionActivationInput
68
@@ -11,7 +13,7 @@ def get_connection_type_interface_subclasses():
1113 "llmstack.connections.handlers" ,
1214 ]
1315
14- excluded_packages = []
16+ excluded_packages = settings . CONNECTION_TYPE_INTERFACE_EXCLUDED_PACKAGES or []
1517
1618 try :
1719 import jnpr .junos # noqa: F401
Original file line number Diff line number Diff line change 619619 )
620620except Exception :
621621 print ("Error parsing CUSTOM_MODELS_DEPLOYMENT_CONFIG" )
622+
623+ CONNECTION_TYPE_INTERFACE_EXCLUDED_PACKAGES = os .getenv (
624+ "CONNECTION_TYPE_INTERFACE_EXCLUDED_PACKAGES" , "llmstack.connections.handlers.web_login"
625+ ).split ("," )
You can’t perform that action at this time.
0 commit comments