-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 全新预设系统、插件系统,实现多模态支持高度可自定义化的 AI 助手 #755
Open
lss233
wants to merge
95
commits into
browser-version
Choose a base branch
from
refactor-v3
base: browser-version
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced May 5, 2023
Closed
最新进展: WebUI |
目前还剩下的内容:
如果有人可以帮忙的话就更好了~ |
Merged
lss233
force-pushed
the
refactor-v3
branch
3 times, most recently
from
May 11, 2023 02:37
3bddac0
to
f67a5b8
Compare
lss233
force-pushed
the
refactor-v3
branch
4 times, most recently
from
May 11, 2023 03:46
06aa597
to
20e3037
Compare
TODO:
|
More TODO:
|
V3初步适配mirai,适配QQ频道私域机器人 (Sourcery refactored)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
当前进度:
本次更新如下:
稳定性提升
这个修改将会改善当前遇到的网络连接问题。
插件系统
本次更新将会降低代码之间的耦合,可以通过插件来接入新的 LLM、绘图、预设等功能。
预设系统
将原来 txt 格式的预设文件改为使用 YAML 格式描述的交互工作流。
在这个工作流中,你可以定义初始化、输入和输出时的操作,这些操作可以让机器人的回应更加生动。
系统内置以下操作:
在工作流被执行时,用户发送的信息、AI返回的信息和操作执行的结果可以存放到变量中。 你可以将这些变量作为参数输入到操作中。
一个具体的预设可以参考: https://github.com/lss233/chatgpt-mirai-qq-bot/blob/refactor-v3/prompts/catgirl.yml
在这个文件中, init 代码块描述了预设在初始化时执行的操作:
接下来, input 代码块描述了对用户发送的消息的处理过程:
最后是 output 代码块:
通过插件的配合,这个预设系统可以支持更多别的操作,包括但不限于:联网搜索、阅读文章、图片识别等,还可以和其他平台接口互联,实现多模态。