glchat-plugin 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- glchat_plugin/pipeline/pipeline_handler.py +4 -3
- {glchat_plugin-0.4.0.dist-info → glchat_plugin-0.4.1.dist-info}/METADATA +1 -1
- {glchat_plugin-0.4.0.dist-info → glchat_plugin-0.4.1.dist-info}/RECORD +5 -5
- {glchat_plugin-0.4.0.dist-info → glchat_plugin-0.4.1.dist-info}/WHEEL +0 -0
- {glchat_plugin-0.4.0.dist-info → glchat_plugin-0.4.1.dist-info}/top_level.txt +0 -0
|
@@ -601,8 +601,9 @@ class PipelineHandler(PluginHandler):
|
|
|
601
601
|
def _prepare_pipelines(self) -> None:
|
|
602
602
|
"""Build pipeline configurations from the chatbots configuration."""
|
|
603
603
|
pipeline_types: set[tuple[str, str]] = set()
|
|
604
|
-
chatbot_preset_map: dict[str, PipelinePresetConfig] = {}
|
|
604
|
+
chatbot_preset_map: dict[str, dict[str, PipelinePresetConfig]] = {}
|
|
605
605
|
for org_id, org_app_config in self.app_config.items():
|
|
606
|
+
chatbot_preset_map.setdefault(org_id, {})
|
|
606
607
|
for chatbot_id, chatbot_info in org_app_config.chatbots.items():
|
|
607
608
|
if not chatbot_info.pipeline:
|
|
608
609
|
logger.warning(f"Pipeline config not found for chatbot `{chatbot_id}`")
|
|
@@ -611,7 +612,7 @@ class PipelineHandler(PluginHandler):
|
|
|
611
612
|
pipeline_info = chatbot_info.pipeline
|
|
612
613
|
pipeline_type = pipeline_info["type"]
|
|
613
614
|
|
|
614
|
-
chatbot_preset_map[chatbot_id] = PipelinePresetConfig(
|
|
615
|
+
chatbot_preset_map[org_id][chatbot_id] = PipelinePresetConfig(
|
|
615
616
|
preset_id=pipeline_info["config"]["pipeline_preset_id"],
|
|
616
617
|
supported_models=list(pipeline_info["config"].get("supported_models", {}).values()),
|
|
617
618
|
)
|
|
@@ -628,7 +629,7 @@ class PipelineHandler(PluginHandler):
|
|
|
628
629
|
for pipeline_type, org_id in pipeline_types:
|
|
629
630
|
self._activated_configs[(pipeline_type, org_id)] = ChatbotPresetMapping(
|
|
630
631
|
pipeline_type=pipeline_type,
|
|
631
|
-
chatbot_preset_map=chatbot_preset_map,
|
|
632
|
+
chatbot_preset_map=chatbot_preset_map[org_id],
|
|
632
633
|
)
|
|
633
634
|
|
|
634
635
|
def _validate_pipeline(self, chatbot_id: str, organization_id: str) -> None:
|
|
@@ -8,7 +8,7 @@ glchat_plugin/handler/__init__.py,sha256=H5DJaAfwwtRsvMcOaEzHfGMQk25H7la0E7uPfks
|
|
|
8
8
|
glchat_plugin/handler/base_post_login_handler.py,sha256=48xSbe_LwTCjRY-lCuzWXqbnEr1ql8bAhQih1Xeh8f8,2835
|
|
9
9
|
glchat_plugin/pipeline/__init__.py,sha256=Sk-NfIGyA9VKIg0Bt5OHatNUYyWVPh9i5xhE5DFAfbo,41
|
|
10
10
|
glchat_plugin/pipeline/base_pipeline_preset_config.py,sha256=lbMH8y_HU3LrqtMYXLzQ2906ZkMXARKY5vBuIGvRVdA,2969
|
|
11
|
-
glchat_plugin/pipeline/pipeline_handler.py,sha256=
|
|
11
|
+
glchat_plugin/pipeline/pipeline_handler.py,sha256=1XkTfhmoIViJKVhRbaKisCRSWR5lzQO6aCP6O8-qqOo,34022
|
|
12
12
|
glchat_plugin/pipeline/pipeline_plugin.py,sha256=eBrg4THS0P49Mz4glEjrwqe1pxnvOn_UitJ9gOBVcac,4562
|
|
13
13
|
glchat_plugin/service/__init__.py,sha256=9T4qzyYL052qLqva5el1F575OTRNaaf9tb9UvW-leTc,47
|
|
14
14
|
glchat_plugin/service/base_rate_limiter_service.py,sha256=tgKwdr4EqnGo5iDRVJPnlg8W9q0hiUzfeewAtdW4IjU,1232
|
|
@@ -19,7 +19,7 @@ glchat_plugin/storage/base_anonymizer_storage.py,sha256=oFwovWrsjM7v1YjeN-4p-M3O
|
|
|
19
19
|
glchat_plugin/storage/base_chat_history_storage.py,sha256=YIGM8zv7s5BQ8O7W1LfaLyQW4SF9Bt3aolowsoDaQw8,11257
|
|
20
20
|
glchat_plugin/tools/__init__.py,sha256=OFotHbgQ8mZEbdlvlv5aVMdxfubPvkVWAcTwhIPdIqQ,542
|
|
21
21
|
glchat_plugin/tools/decorators.py,sha256=AvQBV18wzXWdC483RSSmpfh92zsqTyp8SzDLIkreIGU,3925
|
|
22
|
-
glchat_plugin-0.4.
|
|
23
|
-
glchat_plugin-0.4.
|
|
24
|
-
glchat_plugin-0.4.
|
|
25
|
-
glchat_plugin-0.4.
|
|
22
|
+
glchat_plugin-0.4.1.dist-info/METADATA,sha256=q3Po_AA7fAbEOEMH-EiCgX5VxEOH774fbfnQ_qD8tyc,2063
|
|
23
|
+
glchat_plugin-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
glchat_plugin-0.4.1.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
|
|
25
|
+
glchat_plugin-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|