https://github.com/rockchinq/commonpreprocess
LangBot 插件,提供通用的prompt预处理策略,如:嵌入当前时间、模型名称等
https://github.com/rockchinq/commonpreprocess
Last synced: about 1 month ago
JSON representation
LangBot 插件,提供通用的prompt预处理策略,如:嵌入当前时间、模型名称等
- Host: GitHub
- URL: https://github.com/rockchinq/commonpreprocess
- Owner: RockChinQ
- Created: 2023-07-31T09:05:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-26T07:20:32.000Z (9 months ago)
- Last Synced: 2025-04-02T23:51:17.893Z (6 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Preprocessor
[QChatGPT项目](https://github.com/RockChinQ/QChatGPT)的插件,在请求接口回复前对`情景预设`进行预处理。
> 需要主程序版本高于`v3.1`
## 安装
完成主程序配置之后,使用管理员QQ私聊机器人发送以下命令:
```
!plugin get https://github.com/RockChinQ/CommonPreprocess
```重启程序即可加载。
## 使用
若您的情景预设的内容中包含以下的key,如`$model` `$date_now`,插件将会自动替换成真实值
- `$model`: 当前使用的模型名称
- `$date_now`: 当前时间,如: `2023-07-31 17:19:13 Mon`