Commit graph

34 commits

Author SHA1 Message Date
Sean Murphy
68bb1f221e
Chore: Optimize some code logic and add support for chat context in '锅巴面板' and 'chatgpt帮助' (#310)
* Optimized code logic and added support for chat context in '锅巴面板' and 'chatgpt帮助'

In this commit, I have optimized certain code logic to improve the performance of the application. Additionally, I have added support for chat context in croutons and help, which will enhance the user experience and make the chatbot more user-friendly. This feature will allow users to maintain a better understanding of the conversation flow and context, and will ultimately lead to more successful interactions with the chatbot.

* Update chat.js

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-04-03 11:11:18 +08:00
ikechan8370
fd408586a8 fix: 修复多token功能带来的一些影响 2023-04-01 12:25:20 +08:00
HalcyonAlcedo
e93614ca35
修复多Token功能问题 (#303)
* 修复引用转发,默认bing模式并发

* 开启stream增加稳定性

* fix: remove queue element only in non-bing mode

* 使用chatgpt-api自带的超时逻辑,文字过多时启动切换到图片输出防止被吞

* Update chat.js

* 添加Bing专用的图片输出样式

* 添加chatgpt的新图片模式,临时处理切换api导致的对话异常

* 修改bing样式表

* 为图片添加外部页面缓存

* 为图片模式添加MathJax

* feat: add switch for qrcode

* 防止script攻击

* 修复网页模板错误

* 修复bing页面引用错误

* 缓存服务器异常时处理

* 添加默认配置加载

* 修复配置文件路径错误

* 删除重复的模板文件,修复二维码地址错误

* 修正图片渲染错误

* 修复引用渲染错误

* 二维码网址统一改为使用本地配置

* 添加关闭思考提示的配置项

* 修复在Windows上无法载入配置文件的问题

* 修复关闭qr的情况下渲染错误

* 改为使用base64传递返回数据

* 当异常过多时使用图片输出

* 添加锅巴面板配置支持

* 补充遗漏的默认配置

* 修复qr模式下引用未被传递的问题

* 修复未将引用数据传输给缓存服务器的问题

* 删除无用的bingTimeoutMs配置项

* 添加消息队列超时弹出

* 优化图片模式处理,解决对话队列卡住的问题

* 添加对图片ocr的支持

* 添加图片识别配置项

* 添加黑名单配置项

* 修复一些bug

* 修改锅巴配置格式和描述

* 传入数据也使用markdown

* 图片识别换行改为marked兼容

* 添加绘图CD配置项

* 独立render模块,添加图片回复引用

* 添加必应风格

* 修复上下文,修改bing样式

* 修复上下文

* 添加Sydney上下文支持

* 调整不同模式下的bing渲染颜色

* 修复样式

* 修复无法结束会话的问题

* fix: 更新版本号

* 修复无法结束对话的问题

* 向缓存服务器传送样式

* 为网址格式的配置添加验证

* 去除重复的Keyv删除,取消锅巴配置格式检查

* 闭合中断的代码块

* 试添加Sydney图片模式的情感显示

* 修复at不兼容

* 处理意外的markdown包裹和结构解析修复

* 修复markdown处理的顺序错误

* 兼容json换行

* 重写completeJSON和使用

* 修复换行格式异常

* 均衡BingToken使用

* 修复删除token的数组处理错误

* 修改token文字描述

* 修复首次使用无法添加bingtoken的问题

* 修复意外的删除格式问题,添加查看token功能

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-03-31 19:06:50 +08:00
ikechan8370
5b62667839 feat: 改用SydneyClient更准确地检测token 2023-03-31 13:52:53 +08:00
HalcyonAlcedo
8fb2615811
添加多必应token均衡支持 (#299) 2023-03-31 10:44:21 +08:00
ikechan8370
94d5691e8a feat: add support for chatglm 2023-03-20 00:26:04 +08:00
ikechan8370
1b4bc49612 fix: Custom模式无效的问题;一些管理指令 2023-03-18 14:59:04 +08:00
ikechan8370
3f08cf4894 fix: 加了一系列管理功能 2023-03-14 19:16:21 +08:00
ikechan8370
fa1b1877d0 feat: 增加API key和设定的配置功能 2023-03-08 10:54:10 +08:00
ikechan8370
b332170a1d fix: 结束闭嘴的bug 2023-03-06 20:38:24 +08:00
ikechan8370
156a669ec6 fix: 闭嘴功能 2023-03-06 20:30:57 +08:00
ikechan8370
75a060b86c fix: 优化一些命令匹配 2023-03-05 14:39:33 +08:00
ikechan8370
873deda49d feat: 修改配置文件格式避免频繁panic;降低api模式重试次数;优化帮助显示;支持必应新增的三种模式切换 2023-03-03 20:31:20 +08:00
ikechan8370
a3c2108e1f
Update management.js 2023-03-02 13:16:55 +08:00
ikechan8370
16166924cd fix: add git log 2023-02-20 13:44:51 +08:00
ikechan8370
d013013b89 fix: add code source 2023-02-20 13:41:24 +08:00
ikechan8370
b4c10d5c77 fix: restart error 2023-02-20 13:40:17 +08:00
ikechan8370
a50a5b52cd fix: update error 2023-02-20 13:35:43 +08:00
ikechan8370
18bae72c50 fix: update command / 2023-02-20 13:33:57 +08:00
ikechan8370
5399d57e38 feat: update beta 2023-02-20 13:23:13 +08:00
HalcyonAlcedo
049e71b7bb
修复一些图片模式页面错误,添加图片页面服务器自定义配置,修改配置文件加载方法 (#172) 2023-02-20 11:32:44 +08:00
ikechan8370
a3b14b1a79
Conversation communication (#165)
* init: conversation in api3 (WIP)

* feat: beta conversation

* fix: fix some problems

* fix: add help message
2023-02-18 12:33:24 +08:00
Err0rCM
6f60cd0ebc
添加获取必应Token及必应Token轻校验 (#157)
* feat: api3 WIP

* feat: add support for proxy of openai

* fix: if no proxy

* fix: optimize help message

* 增加必应token轻校验

经测试必应token固定长度215,但内容不确定

* feat: 绑定bing token后测试一下

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-16 17:45:57 +08:00
ikechan8370
53f9edd26d
一些帮助文本 (#155)
* feat: api3 WIP

* feat: add support for proxy of openai

* fix: if no proxy

* fix: optimize help message
2023-02-16 15:32:19 +08:00
ikechan8370
b342e47e8a fix: some help message 2023-02-15 00:20:44 +08:00
ikechan8370
a4a09bfcd8 fix: some help message 2023-02-15 00:18:56 +08:00
ikechan8370
62c8d56e76
Api3 (#149)
* feat: api3 WIP

* feat: add support for proxy of openai

* fix: if no proxy
2023-02-14 22:54:47 +08:00
ikechan8370
95d14fa4a4 fix: bind token 2023-02-14 14:06:20 +08:00
ikechan8370
3ff591d205 feat: add support for bing(beta and WIP) 2023-02-14 11:24:09 +08:00
ikechan8370
ab20b0513d fix: add hint for swicth mode 2023-02-12 15:17:36 +08:00
ikechan8370
a8ec5f41e3 feat: add support for the third party reverse proxy mode 2023-02-12 15:05:03 +08:00
ikechan8370
6fdcbf12e2 feat: support browser-based solution. update readme 2023-02-11 23:17:38 +08:00
ikechan8370
b0738c6db6 fix: 加入重试机制 2023-02-10 10:46:31 +08:00
ikechan8370
233fc7417c feat: 提供了更多的可选配置项,包括确认开关、暗示指令覆盖、触发方式、模型名称和屏蔽词等 2023-02-08 21:09:55 +08:00