Skip to content

Commit

Permalink
v 1.3.1 pre-release
Browse files Browse the repository at this point in the history
- 优化历史记录裁剪逻辑
- 优化token计算逻辑
- 修复edit消息的bug
  • Loading branch information
TBXark authored Mar 16, 2023
2 parents fa3cd3d + 68467c0 commit 12e3956
Show file tree
Hide file tree
Showing 25 changed files with 2,267 additions and 150 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ignore require-jsdoc
module.exports = {
'env': {
'es2021': true,
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 TBXark

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ BUILD_INFO_JSON := ./dist/buildinfo.json
OUTPUT_FILE := ./dist/index.js
ENTRY_FILE := main.js


ifeq (,$(wildcard ./node_modules/.bin))
PATH := ./node_modules/.bin:$(PATH)
ifeq ($(shell if [ -d "./node_modules/.bin" ]; then echo "yes"; else echo "no"; fi),yes)
PATH := ./node_modules/.bin:$(PATH)
endif

.PHONY: build
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@
- ~~长消息被Telegram截断~~

## 更新日志
- v1.3.0
- 添加token使用统计指令`/usage`
- 添加系统信息指令`/system`
- 添加command菜单显示范围
- 添加`SYSTEM_INIT_MESSAGE`环境变量
- 添加`CHAT_MODEL`环境变量
- 添加`Github Action`自动更新部署脚本
- 优化`/init`页面 显示更多错误信息
- 修复`USER_CONFIG`加载异常BUG
- 修复把错误信息存入历史记录BUG
- 修复历史记录裁剪BUG
- v1.3.1
- 优化历史记录裁剪逻辑
- 优化token计算逻辑
- 修复edit消息的bug

其他更新日志见[CHANGELOG.md](./doc/CHANGELOG.md)


## 贡献者

这个项目存在是因为所有贡献者的帮助。[贡献](https://github.com/tbxark/ChatGPT-Telegram-Workers/graphs/contributors).

## 许可证

**ChatGPT-Telegram-Workers** 以 MIT 许可证的形式发布。[查看许可证](./LICENSE) 获取更多细节。
2 changes: 1 addition & 1 deletion dist/buildinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sha": "94c81f1", "timestamp": 1678546663}
{"sha": "9e23846", "timestamp": 1678945730}
Loading

0 comments on commit 12e3956

Please sign in to comment.