Skip to content

Commit 321aa04

Browse files
committed
Exclude unsupported connection types
1 parent 0dc8771 commit 321aa04

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

llmstack/connections/types.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from functools import cache
22
from typing import Generic, Iterator, TypeVar
33

4+
from django.conf import settings
5+
46
from llmstack.common.utils.module_loader import get_all_sub_classes
57
from 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

llmstack/server/settings.py

+4
Original file line numberDiff line numberDiff line change
@@ -619,3 +619,7 @@
619619
)
620620
except 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(",")

0 commit comments

Comments
 (0)