glchat-plugin 0.4.5__py3-none-any.whl → 0.4.6__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 +2 -2
- glchat_plugin/pipeline/pipeline_plugin.py +2 -0
- {glchat_plugin-0.4.5.dist-info → glchat_plugin-0.4.6.dist-info}/METADATA +1 -1
- {glchat_plugin-0.4.5.dist-info → glchat_plugin-0.4.6.dist-info}/RECORD +6 -6
- {glchat_plugin-0.4.5.dist-info → glchat_plugin-0.4.6.dist-info}/WHEEL +0 -0
- {glchat_plugin-0.4.5.dist-info → glchat_plugin-0.4.6.dist-info}/top_level.txt +0 -0
|
@@ -296,7 +296,7 @@ class PipelineHandler(PluginHandler):
|
|
|
296
296
|
prompt_builder_catalogs,
|
|
297
297
|
lmrp_catalogs,
|
|
298
298
|
)
|
|
299
|
-
pipeline_tools = await internal_plugin.build_tools(pipeline_config)
|
|
299
|
+
pipeline_tools = await internal_plugin.build_tools(pipeline_config, prompt_builder_catalogs, lmrp_catalogs)
|
|
300
300
|
pipeline_key = (chatbot_id, f"__{pipeline_type}__", organization_id)
|
|
301
301
|
instance._chatbot_pipeline_keys.setdefault(chatbot_organization_id, set()).add(pipeline_key)
|
|
302
302
|
instance._pipeline_cache[pipeline_key] = PipelineBundle(pipeline, pipeline_tools)
|
|
@@ -336,7 +336,7 @@ class PipelineHandler(PluginHandler):
|
|
|
336
336
|
prompt_builder_catalogs,
|
|
337
337
|
lmrp_catalogs,
|
|
338
338
|
)
|
|
339
|
-
pipeline_tools = await plugin.build_tools(pipeline_config)
|
|
339
|
+
pipeline_tools = await plugin.build_tools(pipeline_config, prompt_builder_catalogs, lmrp_catalogs)
|
|
340
340
|
pipeline_key = (chatbot_id, str(model_id), organization_id)
|
|
341
341
|
instance._chatbot_pipeline_keys.setdefault(chatbot_organization_id, set()).add(pipeline_key)
|
|
342
342
|
instance._pipeline_cache[pipeline_key] = PipelineBundle(pipeline, pipeline_tools)
|
|
@@ -137,6 +137,8 @@ class PipelineBuilderPlugin(Plugin, Generic[PipelineState, PipelinePresetConfig]
|
|
|
137
137
|
async def build_tools(
|
|
138
138
|
self,
|
|
139
139
|
pipeline_config: dict[str, Any],
|
|
140
|
+
prompt_builder_catalogs: dict[str, BaseCatalog[Any]] | None = None,
|
|
141
|
+
lmrp_catalogs: dict[str, BaseCatalog[Any]] | None = None,
|
|
140
142
|
) -> list[ToolProcessor]:
|
|
141
143
|
"""Build a pipeline instance.
|
|
142
144
|
|
|
@@ -8,8 +8,8 @@ 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=
|
|
12
|
-
glchat_plugin/pipeline/pipeline_plugin.py,sha256=
|
|
11
|
+
glchat_plugin/pipeline/pipeline_handler.py,sha256=JPJypNA1YdE6EGJg8gEq2xqDtWdxwxqpdqmbIlG6Ls8,38188
|
|
12
|
+
glchat_plugin/pipeline/pipeline_plugin.py,sha256=xUOVnMu2Skc1QseVpCAm45YBFnQIOEuSAqpHoBVsyJc,5182
|
|
13
13
|
glchat_plugin/pipeline/tool_processor.py,sha256=pc-uHoBqOSXjLM8R_Wgws_z5ehPtaSeb9Bhk9aeLDus,2731
|
|
14
14
|
glchat_plugin/service/__init__.py,sha256=9T4qzyYL052qLqva5el1F575OTRNaaf9tb9UvW-leTc,47
|
|
15
15
|
glchat_plugin/service/base_rate_limiter_service.py,sha256=tgKwdr4EqnGo5iDRVJPnlg8W9q0hiUzfeewAtdW4IjU,1232
|
|
@@ -20,7 +20,7 @@ glchat_plugin/storage/base_anonymizer_storage.py,sha256=oFwovWrsjM7v1YjeN-4p-M3O
|
|
|
20
20
|
glchat_plugin/storage/base_chat_history_storage.py,sha256=YIGM8zv7s5BQ8O7W1LfaLyQW4SF9Bt3aolowsoDaQw8,11257
|
|
21
21
|
glchat_plugin/tools/__init__.py,sha256=OFotHbgQ8mZEbdlvlv5aVMdxfubPvkVWAcTwhIPdIqQ,542
|
|
22
22
|
glchat_plugin/tools/decorators.py,sha256=AvQBV18wzXWdC483RSSmpfh92zsqTyp8SzDLIkreIGU,3925
|
|
23
|
-
glchat_plugin-0.4.
|
|
24
|
-
glchat_plugin-0.4.
|
|
25
|
-
glchat_plugin-0.4.
|
|
26
|
-
glchat_plugin-0.4.
|
|
23
|
+
glchat_plugin-0.4.6.dist-info/METADATA,sha256=1g9LlVnwamc7VP3r-wCs293gBhCkcoWQUiaiVnwbhtc,2063
|
|
24
|
+
glchat_plugin-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
25
|
+
glchat_plugin-0.4.6.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
|
|
26
|
+
glchat_plugin-0.4.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|