File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
from functools import cache
2
2
from typing import Generic , Iterator , TypeVar
3
3
4
+ from django .conf import settings
5
+
4
6
from llmstack .common .utils .module_loader import get_all_sub_classes
5
7
from llmstack .connections .models import Connection , ConnectionActivationInput
6
8
@@ -11,7 +13,7 @@ def get_connection_type_interface_subclasses():
11
13
"llmstack.connections.handlers" ,
12
14
]
13
15
14
- excluded_packages = []
16
+ excluded_packages = settings . CONNECTION_TYPE_INTERFACE_EXCLUDED_PACKAGES or []
15
17
16
18
try :
17
19
import jnpr .junos # noqa: F401
Original file line number Diff line number Diff line change 619
619
)
620
620
except Exception :
621
621
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