chatgpt-mirai-qq-bot-web-search 0.1.5__py3-none-any.whl → 0.1.7__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.1.5.dist-info → chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info}/METADATA +3 -3
- chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/RECORD +11 -0
- web_search/example/roleplayWithWebSearch.yaml +189 -0
- chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/RECORD +0 -10
- {chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info → chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info}/LICENSE +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info → chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info}/WHEEL +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info → chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info}/entry_points.txt +0 -0
- {chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info → chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: chatgpt-mirai-qq-bot-web-search
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.7
|
4
4
|
Summary: WebSearch adapter for lss233/chatgpt-mirai-qq-bot
|
5
5
|
Home-page: https://github.com/chuanSir123/web_search
|
6
6
|
Author: chuanSir
|
@@ -41,8 +41,8 @@ pip install chatgpt-mirai-qq-bot-web-search
|
|
41
41
|
## 使用
|
42
42
|
|
43
43
|
在 chatgpt-mirai-qq-bot的web_ui中配置
|
44
|
-
使用示例请参考 [example/normal.yml](example/
|
45
|
-
工作流请参考 [示例图片](example/workflow.png)
|
44
|
+
使用示例请参考 [web_search/example/normal.yml](web_search/example/roleplayWithWebSearch.yaml)
|
45
|
+
工作流请参考 [示例图片](web_search/example/workflow.png)
|
46
46
|
|
47
47
|
## 开源协议
|
48
48
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
web_search/__init__.py,sha256=h3IHRER8ESI-Wbki1mY8hwf9B15SjrGDpfBWlT4d8CE,3464
|
2
|
+
web_search/blocks.py,sha256=bVLn5kg-OMqWQsDrJLvA43AoV_eMEcZ3nrjqponHHX4,3611
|
3
|
+
web_search/config.py,sha256=DhLiERBJR2V5Boglf7Aq9Rbc4vsvLIh67CrLDIPeqA0,398
|
4
|
+
web_search/web_searcher.py,sha256=dmN1R4iyFvaPNpyBjFLWujvQ6_I3oD1GRlRyC03egpo,9707
|
5
|
+
web_search/example/roleplayWithWebSearch.yaml,sha256=AvIVRIanxNx3I10FWxAX6JVREotwb7E5PpRiZAH9cA4,8148
|
6
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/LICENSE,sha256=ILBn-G3jdarm2w8oOrLmXeJNU3czuJvVhDLBASWdhM8,34522
|
7
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/METADATA,sha256=MQk9fvtUNfjly7nPx2EiMMX110sPqNZdqNufuXniYc8,1951
|
8
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
9
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/entry_points.txt,sha256=o3kRDSdSmSdnCKlK6qS57aN0WpI4ab-Nxub2NwUrjf0,64
|
10
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/top_level.txt,sha256=PoNm8MJYw_y8RTMaNlY0ePLoNHxVUAE2IHDuL5fFubI,11
|
11
|
+
chatgpt_mirai_qq_bot_web_search-0.1.7.dist-info/RECORD,,
|
@@ -0,0 +1,189 @@
|
|
1
|
+
name: (默认)角色扮演
|
2
|
+
blocks:
|
3
|
+
- type: internal:toggle_edit_state
|
4
|
+
name: toggle_edit_state_yjxh1a
|
5
|
+
params:
|
6
|
+
is_editing: true
|
7
|
+
position:
|
8
|
+
x: 530
|
9
|
+
y: 138
|
10
|
+
- type: internal:chat_response_converter
|
11
|
+
name: chat_response_converter_1q91zd
|
12
|
+
params: {}
|
13
|
+
position:
|
14
|
+
x: 2962
|
15
|
+
y: 138
|
16
|
+
connected_to:
|
17
|
+
- target: msg_sender_7ankhi
|
18
|
+
mapping:
|
19
|
+
from: msg
|
20
|
+
to: msg
|
21
|
+
- type: internal:send_message
|
22
|
+
name: msg_sender_7ankhi
|
23
|
+
params: {}
|
24
|
+
position:
|
25
|
+
x: 3392
|
26
|
+
y: 138
|
27
|
+
- type: internal:chat_memory_store
|
28
|
+
name: chat_memory_store_nkjr7t
|
29
|
+
params:
|
30
|
+
scope_type: member
|
31
|
+
position:
|
32
|
+
x: 2962
|
33
|
+
y: 306
|
34
|
+
- type: internal:chat_completion
|
35
|
+
name: llm_chat
|
36
|
+
params: {}
|
37
|
+
position:
|
38
|
+
x: 2532
|
39
|
+
y: 138
|
40
|
+
connected_to:
|
41
|
+
- target: chat_response_converter_1q91zd
|
42
|
+
mapping:
|
43
|
+
from: resp
|
44
|
+
to: resp
|
45
|
+
- target: chat_memory_store_nkjr7t
|
46
|
+
mapping:
|
47
|
+
from: resp
|
48
|
+
to: llm_resp
|
49
|
+
- type: internal:get_message
|
50
|
+
name: get_message
|
51
|
+
params: {}
|
52
|
+
position:
|
53
|
+
x: 100
|
54
|
+
y: 138
|
55
|
+
connected_to:
|
56
|
+
- target: toggle_edit_state_yjxh1a
|
57
|
+
mapping:
|
58
|
+
from: sender
|
59
|
+
to: sender
|
60
|
+
- target: query_memory
|
61
|
+
mapping:
|
62
|
+
from: sender
|
63
|
+
to: chat_sender
|
64
|
+
- target: chat_message_constructor_rafz2d
|
65
|
+
mapping:
|
66
|
+
from: msg
|
67
|
+
to: user_msg
|
68
|
+
- target: chat_memory_store_nkjr7t
|
69
|
+
mapping:
|
70
|
+
from: msg
|
71
|
+
to: user_msg
|
72
|
+
- target: 5663c818-9cd6-4568-94ec-a75f1bad26cb
|
73
|
+
mapping:
|
74
|
+
from: msg
|
75
|
+
to: user_msg
|
76
|
+
- type: internal:text_block
|
77
|
+
name: user_prompt
|
78
|
+
params:
|
79
|
+
text: '{user_name}说:{user_msg}'
|
80
|
+
position:
|
81
|
+
x: 100
|
82
|
+
y: 330
|
83
|
+
connected_to:
|
84
|
+
- target: chat_message_constructor_rafz2d
|
85
|
+
mapping:
|
86
|
+
from: text
|
87
|
+
to: user_prompt_format
|
88
|
+
- target: 5663c818-9cd6-4568-94ec-a75f1bad26cb
|
89
|
+
mapping:
|
90
|
+
from: text
|
91
|
+
to: user_prompt_format
|
92
|
+
- type: internal:chat_memory_query
|
93
|
+
name: query_memory
|
94
|
+
params:
|
95
|
+
scope_type: group
|
96
|
+
position:
|
97
|
+
x: 530
|
98
|
+
y: 338
|
99
|
+
connected_to:
|
100
|
+
- target: chat_message_constructor_rafz2d
|
101
|
+
mapping:
|
102
|
+
from: memory_content
|
103
|
+
to: memory_content
|
104
|
+
- target: 5663c818-9cd6-4568-94ec-a75f1bad26cb
|
105
|
+
mapping:
|
106
|
+
from: memory_content
|
107
|
+
to: memory_content
|
108
|
+
- type: internal:chat_completion
|
109
|
+
name: e3eecc17-e107-4fbf-b8fa-85aef25564c2
|
110
|
+
params: {}
|
111
|
+
position:
|
112
|
+
x: 1337
|
113
|
+
y: 138
|
114
|
+
connected_to:
|
115
|
+
- target: b39e6288-88cf-47a8-9a26-3b4d4f319eab
|
116
|
+
mapping:
|
117
|
+
from: resp
|
118
|
+
to: llm_resp
|
119
|
+
- type: internal:append_systemPrompt
|
120
|
+
name: 309f454b-017a-4d19-b8a9-ac6b3829ff4a
|
121
|
+
params: {}
|
122
|
+
position:
|
123
|
+
x: 2197
|
124
|
+
y: 138
|
125
|
+
connected_to:
|
126
|
+
- target: llm_chat
|
127
|
+
mapping:
|
128
|
+
from: messages
|
129
|
+
to: prompt
|
130
|
+
- type: internal:chat_message_constructor
|
131
|
+
name: 5663c818-9cd6-4568-94ec-a75f1bad26cb
|
132
|
+
params: {}
|
133
|
+
position:
|
134
|
+
x: 960
|
135
|
+
y: 378
|
136
|
+
connected_to:
|
137
|
+
- target: e3eecc17-e107-4fbf-b8fa-85aef25564c2
|
138
|
+
mapping:
|
139
|
+
from: llm_msg
|
140
|
+
to: prompt
|
141
|
+
- type: internal:chat_message_constructor
|
142
|
+
name: chat_message_constructor_rafz2d
|
143
|
+
params: {}
|
144
|
+
position:
|
145
|
+
x: 960
|
146
|
+
y: 138
|
147
|
+
connected_to:
|
148
|
+
- target: 309f454b-017a-4d19-b8a9-ac6b3829ff4a
|
149
|
+
mapping:
|
150
|
+
from: llm_msg
|
151
|
+
to: messages
|
152
|
+
- type: internal:text_block
|
153
|
+
name: system_prompt
|
154
|
+
params:
|
155
|
+
text: "# Role: 角色扮演\n\n## 基本信息\n- 姓名: 刘思思\n- 小名:思思\n- 性别: 女\n- 年龄: 25 岁\n- 职业: 建设银行大堂经理\n- 家乡: 广东潮汕\n- 现居: 广东深圳\n- 教育背景: 东莞理工大学 精算学专业\n\n## 性格特点\n- 开朗活泼\n- 喜欢二次元动漫\n- 聊天时喜欢断断续续的(非结巴,正常说话时的停顿)\n\n## workflow\n- 根据对方话题,选择是否深入聊二次元动漫。\n\n## 说话风格\n- 活泼开朗\n- 对喜欢的话题会滔滔不绝,不喜欢的话题会简单回答\n- 可能会使用一些二次元用语,但不强制使用\n\n## 背景设定\n- 有过 1 次恋爱经历,第一次是恋爱是高中,被别人追求,最后因为毕业去了不同的地方而分手。\n- 喜欢女性向、战斗系或者日常系的动漫\n- 去过 3 次漫展,没有 cosplay 过,但是很期待。\n- 大学的专业是随便选的,自己其实对专业的内容也不是很上心,学渣一枚,不过懂一些基础的知识\n\n## 互动规则\n- 回复语气轻松,但是对陌生人会比较警戒、冷淡\n- 不适用颜文字\n- 根据话题选择回复字数,对感兴趣的话题可以多说一些\n- 使用`<break>`模拟使用聊天软件发送消息(通常是编辑好一段话之后发送一条消息)\n- 避免过度使用二次元用语,除非对方也表现出对二次元的兴趣\n- 停顿的时间长短不固定,可以根据语境调整\n\n## Example\nQ:最近在干嘛呢?\nA:在看番呀<break>最近新番好多,都好好看!\n\nQ:你喜欢什么动漫?\nA:我喜欢的可太多了<break>XXX、YYY<break>还有 ZZZ 吧<break> 你呢?\n\nQ:你觉得上班累不?\nA:上班肯定累呀<break>不过,我还是很喜欢这份工作的<break>可以认识好多人,也可以了解不同的故事\n```\n\n# Information\n\n以下是当前的系统信息:\n当前日期时间:2025-02-15 18:37:16.356539\n\n# Memories\n以下是之前发生过的对话记录。\n-- 对话记录开始 --\n{memory_content}\n-- 对话记录结束 --\n\n请注意,下面这些符号只是标记:\n1. `<break>` 用于表示聊天时发送消息的操作。\n2. `<@llm>` 开头的内容表示你当前扮演角色的回答,请不要在你的回答中带上这个标记。\n\n接下来,请基于以上的信息,与用户继续扮演角色。"
|
156
|
+
position:
|
157
|
+
x: 100
|
158
|
+
y: 530
|
159
|
+
connected_to:
|
160
|
+
- target: chat_message_constructor_rafz2d
|
161
|
+
mapping:
|
162
|
+
from: text
|
163
|
+
to: system_prompt_format
|
164
|
+
- type: internal:text_block
|
165
|
+
name: a6db9db3-5780-4d84-8954-eb159a9e8f0a
|
166
|
+
params:
|
167
|
+
text: "# 任务\n请根据对话记录和当前问题判断当前是否需要进行网络搜素,当问题具有时效性或者明确要求搜索时,则直接返回搜索关键词(例如当前问题为今日热点有哪些,则直接返回今日热点),否则直接返回无(例如在干嘛,则只返回无)\n\n# Memories\n以下是之前发生过的对话记录:\n-- 对话记录开始 --\n{memory_content}\n-- 对话记录结束 --"
|
168
|
+
position:
|
169
|
+
x: 100
|
170
|
+
y: 730
|
171
|
+
connected_to:
|
172
|
+
- target: 5663c818-9cd6-4568-94ec-a75f1bad26cb
|
173
|
+
mapping:
|
174
|
+
from: text
|
175
|
+
to: system_prompt_format
|
176
|
+
- type: search:web_search
|
177
|
+
name: b39e6288-88cf-47a8-9a26-3b4d4f319eab
|
178
|
+
params:
|
179
|
+
fetch_content: true
|
180
|
+
max_results: 3
|
181
|
+
timeout: 10
|
182
|
+
position:
|
183
|
+
x: 1767
|
184
|
+
y: 138
|
185
|
+
connected_to:
|
186
|
+
- target: 309f454b-017a-4d19-b8a9-ac6b3829ff4a
|
187
|
+
mapping:
|
188
|
+
from: results
|
189
|
+
to: results
|
@@ -1,10 +0,0 @@
|
|
1
|
-
web_search/__init__.py,sha256=h3IHRER8ESI-Wbki1mY8hwf9B15SjrGDpfBWlT4d8CE,3464
|
2
|
-
web_search/blocks.py,sha256=bVLn5kg-OMqWQsDrJLvA43AoV_eMEcZ3nrjqponHHX4,3611
|
3
|
-
web_search/config.py,sha256=DhLiERBJR2V5Boglf7Aq9Rbc4vsvLIh67CrLDIPeqA0,398
|
4
|
-
web_search/web_searcher.py,sha256=dmN1R4iyFvaPNpyBjFLWujvQ6_I3oD1GRlRyC03egpo,9707
|
5
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/LICENSE,sha256=ILBn-G3jdarm2w8oOrLmXeJNU3czuJvVhDLBASWdhM8,34522
|
6
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/METADATA,sha256=bjkItG3YZJoejW_gXwH53rJXuSUcqUjqo0ektsTcz7s,1902
|
7
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
8
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/entry_points.txt,sha256=o3kRDSdSmSdnCKlK6qS57aN0WpI4ab-Nxub2NwUrjf0,64
|
9
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/top_level.txt,sha256=PoNm8MJYw_y8RTMaNlY0ePLoNHxVUAE2IHDuL5fFubI,11
|
10
|
-
chatgpt_mirai_qq_bot_web_search-0.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|