Skip to content
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: 异步架构 #669

Merged
merged 90 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
e63c6ac
feat: 删除main.py中init_db函数
RockChinQ Jan 23, 2024
8d35ecd
refactor: 基本启动流程
RockChinQ Jan 23, 2024
ad5ef95
refactor: yirimirai 适配器实现异步
RockChinQ Jan 23, 2024
2f87796
chore: 删除部分注释代码
RockChinQ Jan 23, 2024
a236089
refactor: 独立resprule模块
RockChinQ Jan 24, 2024
3d06a18
refactor: 简化私聊群聊共同处理代码
RockChinQ Jan 24, 2024
a975718
refactor: 暂时删除对热重载的支持
RockChinQ Jan 24, 2024
b4bd865
chore: banlist模版移至根目录
RockChinQ Jan 24, 2024
f3bcff1
chore: banlist模版移至根目录
RockChinQ Jan 24, 2024
f4ae9df
refactor: 重构会话封禁功能处理逻辑
RockChinQ Jan 24, 2024
a9a798b
refactor: filter和ignore独立成新的cntfilter包
RockChinQ Jan 25, 2024
ea9ae85
refactor: 独立长消息处理为longtext包
RockChinQ Jan 25, 2024
f4ead5e
refactor: 独立resprule为单独的包
RockChinQ Jan 25, 2024
b43882a
refactor: 独立ratelimiter包
RockChinQ Jan 25, 2024
a064c24
Merge pull request #670 from RockChinQ/refactor/asyncio/simplify-qqbo…
RockChinQ Jan 25, 2024
8d08442
refactor: 请求处理控制流基础架构
RockChinQ Jan 26, 2024
1900dda
chore: 删除 qqbot 包中的流程代码
RockChinQ Jan 26, 2024
4110349
feat: 启动时展示asciiart
RockChinQ Jan 26, 2024
850a4ee
refactor: 重构openai包基础组件架构
RockChinQ Jan 26, 2024
f10af09
refactor: AI对话基本完成
RockChinQ Jan 27, 2024
2a0cf57
refactor: 命令处理基础
RockChinQ Jan 27, 2024
1368ee2
refactor: 命令基本完成
RockChinQ Jan 28, 2024
b5924bb
refactor: 添加更新命令
RockChinQ Jan 28, 2024
238c55a
chore: 删除已弃用的文件
RockChinQ Jan 28, 2024
d130c37
chore: 删除命令权限同步脚本
RockChinQ Jan 28, 2024
2b0faea
Merge pull request #673 from RockChinQ/refactor/asyncio/control-flow
RockChinQ Jan 28, 2024
698782c
chore: 整理文件
RockChinQ Jan 28, 2024
b730f17
chore: 修改包名
RockChinQ Jan 28, 2024
6cc4688
refactor: 重构插件系统
RockChinQ Jan 29, 2024
c75b0ce
perf: 优化代码声明
RockChinQ Jan 29, 2024
13ab647
perf: 完善插件加载流程
RockChinQ Jan 29, 2024
3945ac9
refactor: 审计api改为异步
RockChinQ Jan 29, 2024
437971d
feat: 应用层异常处理
RockChinQ Jan 30, 2024
e9e458c
feat: 公告和更新检查
RockChinQ Jan 30, 2024
28bd232
feat: 添加更多LLM模型
RockChinQ Jan 30, 2024
61f4cb2
perf: 完善模型信息
RockChinQ Jan 30, 2024
6b76adc
feat: 添加事件对象
RockChinQ Jan 30, 2024
e2de3d0
feat: 删除部分插件事件
RockChinQ Jan 30, 2024
33d600f
refactor: 恢复插件事件调用
RockChinQ Jan 30, 2024
94bf773
chore: 默认回复函数响应
RockChinQ Jan 30, 2024
b274168
Update override-all.json
github-actions[bot] Jan 30, 2024
b749ba5
feat: 恢复强制消息延迟
RockChinQ Jan 30, 2024
c1c751a
feat: 更新操作
RockChinQ Jan 30, 2024
32162af
refactor: 恢复所有审计API调用
RockChinQ Jan 30, 2024
976a9de
refactor: 分隔LLM请求过程和消息封装过程
RockChinQ Feb 1, 2024
532a713
refactor: 独立出预处理阶段
RockChinQ Feb 1, 2024
6f2d7d9
perf: 完善历史消息处理逻辑
RockChinQ Feb 1, 2024
a9d9211
feat: chat前的前文剪裁逻辑
RockChinQ Feb 1, 2024
7026abe
perf: 完善openai异常处理
RockChinQ Feb 1, 2024
0dec10d
chore: 删除tests目录
RockChinQ Feb 1, 2024
f340a44
feat: 恢复ratelimit
RockChinQ Feb 1, 2024
c853bba
refactor: 配置文件均改为json
RockChinQ Feb 6, 2024
c1fed34
chore: 删除过时的配置文件
RockChinQ Feb 6, 2024
26912ef
chore: 删除多余文件
RockChinQ Feb 6, 2024
aab5629
chore: 删除字体文件
RockChinQ Feb 6, 2024
2a913ed
chore: 删除过时文件
RockChinQ Feb 6, 2024
b5b67ad
refactor: 恢复命令权限设置
RockChinQ Feb 6, 2024
5880dac
ci: 修改dockerfile
RockChinQ Feb 6, 2024
84b2867
Merge pull request #677 from RockChinQ/refactor/asyncio/config
RockChinQ Feb 6, 2024
aeb1912
feat: 适配aiocqhttp
RockChinQ Feb 7, 2024
71b54fd
Merge pull request #678 from RockChinQ/feat/aiocqhttp
RockChinQ Feb 7, 2024
12820e6
feat: 支持qq-botpy
RockChinQ Feb 7, 2024
7366ca5
chore: 忽略botpy.log
RockChinQ Feb 7, 2024
cf58348
Merge pull request #679 from RockChinQ/feat/botpy-qq
RockChinQ Feb 7, 2024
d86ad25
feat: 正向代理支持
RockChinQ Feb 7, 2024
f9a3e99
feat: 恢复nakuru使用
RockChinQ Feb 8, 2024
2fa5d76
chore: 删除无效代码
RockChinQ Feb 8, 2024
e705e70
Merge pull request #680 from RockChinQ/feat/nakuru
RockChinQ Feb 8, 2024
d95e18c
chore: 整理代码
RockChinQ Feb 8, 2024
c2b3b53
chore: 修改启动相关
RockChinQ Feb 8, 2024
f951625
chore: 修改推荐的docker-compose.yaml配置
RockChinQ Feb 8, 2024
9cad94e
feat: 支持同时运行多个平台适配器
RockChinQ Feb 11, 2024
836df87
feat: 删除过时配置
RockChinQ Feb 11, 2024
abc19e7
feat: 命令行退出方式
RockChinQ Feb 11, 2024
991a0aa
fix: 修复nakuru无法运行的问题
RockChinQ Feb 12, 2024
8af1741
Merge pull request #685 from RockChinQ/feat/run-multi-adapter
RockChinQ Feb 12, 2024
f73d69e
perf: 添加未启用适配器时的警告
RockChinQ Feb 15, 2024
7174cbf
feat: 支持 ctrl+c 退出
RockChinQ Feb 15, 2024
ae358dd
fix: 昨天错误的shutdown_trigger逻辑
RockChinQ Feb 16, 2024
06c8773
perf: 优化控制台输出
RockChinQ Feb 16, 2024
d74681a
deps: 删除无用依赖
RockChinQ Feb 19, 2024
9a85178
deps: 重新添加nakuru
RockChinQ Feb 19, 2024
53d0059
perf: 不再需要exit来退出程序
RockChinQ Feb 19, 2024
7b3bb53
ci: 更换基础镜像
RockChinQ Feb 19, 2024
1e016df
ci: 修改工作流文件名
RockChinQ Feb 19, 2024
5ce1759
fix: 启动后未进行对话时,!list会 越界异常
RockChinQ Feb 19, 2024
0bf85fb
fix: msg_source无法通过审计接口发给center
RockChinQ Feb 19, 2024
082731b
fix: !version 命令获取最新版本失败时导致命令失败
RockChinQ Feb 19, 2024
6ccee3b
chore: 删除 README_en.md
RockChinQ Feb 19, 2024
4ef285a
chore: 删除无用文件
RockChinQ Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ updates:
interval: "weekly"
allow:
- dependency-name: "yiri-mirai-rc"
- dependency-name: "dulwich"
- dependency-name: "openai"
58 changes: 0 additions & 58 deletions .github/workflows/update-cmdpriv-template.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/update-override-all.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ bard.json
!/docker-compose.yaml
res/instance_id.json
.DS_Store
/data
botpy.log
15 changes: 4 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
FROM python:3.10.13-bullseye
WORKDIR /QChatGPT
FROM python:3.10.13-slim
WORKDIR /app

COPY . /QChatGPT/
COPY . .

RUN ls

RUN python -m pip install -r requirements.txt && \
python -m pip install -U websockets==10.0 && \
python -m pip install -U httpcore httpx openai

# 生成配置文件
RUN python main.py
RUN python -m pip install -r requirements.txt

CMD [ "python", "main.py" ]
215 changes: 0 additions & 215 deletions README_en.md

This file was deleted.

Loading
Loading