chatgpt-mirai-qq-bot-web-search 0.2.1__py3-none-any.whl → 0.2.2__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.
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/METADATA +1 -1
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/RECORD +7 -7
- web_search/__init__.py +2 -1
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/LICENSE +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/WHEEL +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/entry_points.txt +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.2.1.dist-info → chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info}/top_level.txt +0 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
web_search/__init__.py,sha256=
|
1
|
+
web_search/__init__.py,sha256=cDyiTyQ4i-7brk3qfQrPBF5XQNpDacWmauzJwTlK6VI,4485
|
2
2
|
web_search/blocks.py,sha256=S3RsV9CCTKAsKUNhewg__ejEpJRDz7DTawtH05WRgE8,6732
|
3
3
|
web_search/config.py,sha256=DhLiERBJR2V5Boglf7Aq9Rbc4vsvLIh67CrLDIPeqA0,398
|
4
4
|
web_search/web_searcher.py,sha256=0zLgMsWCK71gStyWpFjup5WfxHx3tBTf3rGwM7Ae7Zs,13332
|
5
5
|
web_search/example/roleplayWithWebSearch.yaml,sha256=C-dGy3z8gcRcmxzurssP-kPRLqMf1TYR-nnNUaJjISE,7468
|
6
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
7
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
8
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
9
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
10
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
11
|
-
chatgpt_mirai_qq_bot_web_search-0.2.
|
6
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/LICENSE,sha256=ILBn-G3jdarm2w8oOrLmXeJNU3czuJvVhDLBASWdhM8,34522
|
7
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/METADATA,sha256=Skc-om3-q2TH-RUte06VDlqyOD4QC17hpqaS2UanRCM,1738
|
8
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
9
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/entry_points.txt,sha256=o3kRDSdSmSdnCKlK6qS57aN0WpI4ab-Nxub2NwUrjf0,64
|
10
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/top_level.txt,sha256=PoNm8MJYw_y8RTMaNlY0ePLoNHxVUAE2IHDuL5fFubI,11
|
11
|
+
chatgpt_mirai_qq_bot_web_search-0.2.2.dist-info/RECORD,,
|
web_search/__init__.py
CHANGED
@@ -6,7 +6,7 @@ from .config import WebSearchConfig
|
|
6
6
|
from .web_searcher import WebSearcher
|
7
7
|
from dataclasses import dataclass
|
8
8
|
from kirara_ai.workflow.core.block import BlockRegistry
|
9
|
-
from .blocks import WebSearchBlock
|
9
|
+
from .blocks import WebSearchBlock,WebSearchByKeywordBlock
|
10
10
|
from .blocks import AppendSystemPromptBlock
|
11
11
|
from kirara_ai.ioc.inject import Inject
|
12
12
|
from kirara_ai.ioc.container import DependencyContainer
|
@@ -30,6 +30,7 @@ class WebSearchPlugin(Plugin):
|
|
30
30
|
# 注册Block
|
31
31
|
try:
|
32
32
|
self.block_registry.register("web_search", "search", WebSearchBlock)
|
33
|
+
self.block_registry.register("web_search_by_keyword", "search", WebSearchByKeywordBlock)
|
33
34
|
except Exception as e:
|
34
35
|
logger.warning(f"WebSearchPlugin failed: {e}")
|
35
36
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|