Commit graph

84 commits

Author SHA1 Message Date
HalcyonAlcedo
7b58f20578
独立render功能,图片模式添加引用回复 (#204)
* 修复引用转发,默认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模块,添加图片回复引用

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-28 19:50:53 +08:00
ikechan8370
aff436007d feat: version 2023-02-25 20:26:11 +08:00
HalcyonAlcedo
ba027dc760
修复一些bug,图片识别支持多个图片 (#194)
* 修复引用转发,默认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兼容

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-25 19:34:08 +08:00
ikechan8370
5fceef37ec feat: support dalle image variation 2023-02-25 15:23:47 +08:00
ikechan8370
47976f2325 fix: blockwords problem 2023-02-24 16:50:55 +08:00
ikechan8370
b5887e6962 fix: no quotes in picture mode 2023-02-24 16:17:51 +08:00
HalcyonAlcedo
1247aef5bb
添加图片识别功能 (#191)
* 修复引用转发,默认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的支持

* 添加图片识别配置项

* 添加黑名单配置项

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-24 15:51:29 +08:00
HalcyonAlcedo
7192a8c6fa
优化图片模式发送功能,增加对话队列超时检测 (#188)
* 修复引用转发,默认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配置项

* 添加消息队列超时弹出

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

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-23 18:47:35 +08:00
HalcyonAlcedo
a68103737f
添加锅巴面板配置支持 (#184)
* 修复引用转发,默认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模式下引用未被传递的问题

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-22 18:51:05 +08:00
ikechan8370
53ff4b653c fix: remove mathjax 2023-02-22 14:00:09 +08:00
ikechan8370
6f90c50116 fix: bugs caused by duplicate variables 2023-02-22 13:57:14 +08:00
ikechan8370
79fc3d94a7 fix: ignore qrcode if there is failure to upload to cache server 2023-02-22 12:37:35 +08:00
ikechan8370
f235552e2b feat: add prompt block words 2023-02-22 12:22:23 +08:00
ikechan8370
0365a3a09f fix: 取消图片模式的循环Continue 2023-02-22 12:09:48 +08:00
HalcyonAlcedo
ae161ed4ce
使用base64代替escapeHtml就传入数据 (#178)
* 修复引用转发,默认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传递返回数据

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-20 21:01:38 +08:00
HalcyonAlcedo
59d5e904b5
修复bug (#175)
* 修复引用转发,默认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的情况下渲染错误

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-20 18:32:45 +08:00
HalcyonAlcedo
049e71b7bb
修复一些图片模式页面错误,添加图片页面服务器自定义配置,修改配置文件加载方法 (#172) 2023-02-20 11:32:44 +08:00
ikechan8370
6b9afe588a
Update chat.js 2023-02-19 19:03:07 +08:00
ikechan8370
6da40e3843 fix: vulnerability problems 2023-02-19 01:19:08 +08:00
HalcyonAlcedo
c07503db29
防止注入攻击 (#170)
* 修复引用转发,默认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攻击

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-19 00:44:33 +08:00
夏叶
624e1f6e1a
添加OpenAI API额度的到期日期,格式化小数点 (#168) 2023-02-19 00:18:11 +08:00
HalcyonAlcedo
a4f12eaf09
为图片添加外部页面保存 (#167)
* 修复引用转发,默认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

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-19 00:17:37 +08:00
ikechan8370
de4a6c8f41 fix: picture mode api3 compatible problem 2023-02-18 22:14:38 +08:00
ikechan8370
9ae8d1cec6 Merge branch 'v2' of github.com:ikechan8370/chatgpt-plugin into v2 2023-02-18 20:50:40 +08:00
ikechan8370
2804aea54d fix: no use picture bug 2023-02-18 20:49:57 +08:00
ikechan8370
4bf12ccb89
fix: enable confirm by default 2023-02-18 17:53:59 +08:00
ikechan8370
c98388258a fix: delete log bug 2023-02-18 15:20:36 +08:00
ikechan8370
05494ad85b fix: delete in group only at mode 2023-02-18 15:16:53 +08:00
ikechan8370
4cdaa70c22 feat: delete conversation beta 2023-02-18 15:10:57 +08:00
ikechan8370
d61e1ed7ed fix: 优化文本 2023-02-18 14:36:40 +08:00
ikechan8370
4b54a79fc6 feat: join conversation 2023-02-18 14:23:30 +08:00
ikechan8370
9527a9da92 fix: destroy conversation 2023-02-18 13:20:24 +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
ikechan8370
a1e72c7757
fix: destroy await/async 2023-02-17 22:15:28 +08:00
HalcyonAlcedo
4d53f378f1
更改必应和chatgpt的图片模式web模板,临时处理切换模式后会话失效问题 (#163)
* 修复引用转发,默认bing模式并发

* 开启stream增加稳定性

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

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

* Update chat.js

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

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

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-17 19:55:23 +08:00
夏叶
37f75a64fa
OpenAI Plus剩余额度查询 (#161) 2023-02-17 19:15:06 +08:00
ikechan8370
22d85b5d98 feat: support node-fetch in API mode 2023-02-16 21:39:33 +08:00
HalcyonAlcedo
2ca69ed758
使用chatgpt-api自带的超时机制,回复文字过多时使用图片发送 (#154)
* 修复引用转发,默认bing模式并发

* 开启stream增加稳定性

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

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

* Update chat.js

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-16 16:15:24 +08:00
ikechan8370
0f7122f865 feat: support the complete bing cookie which contains _U 2023-02-16 16:08:07 +08:00
HalcyonAlcedo
1296eccb48
修复引用,为必应开启并发 (#151)
* 修复引用转发,默认bing模式并发

* 开启stream增加稳定性

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

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-02-15 16:16:37 +08:00
ikechan8370
faf3612c96 fix: ptimout not defined 2023-02-15 12:38:10 +08:00
ikechan8370
236ec07f38 fix: add bing timeout 2023-02-15 12:22:02 +08:00
ikechan8370
54cdded6c0 fix: API mode invalid session token error 2023-02-15 11:52:29 +08:00
ikechan8370
23b16a7f85 fix: bing timeout error 2023-02-15 11:32:45 +08:00
ikechan8370
4ba1c80cc0 fix: API3 conversation bug 2023-02-15 00:49:48 +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
ab021d0caa fix: api -> reverseProxyUrl 2023-02-14 19:04:18 +08:00
ikechan8370
548642dab9 fix: null option 2023-02-14 18:58:58 +08:00
ikechan8370
c0c43461c1 feat: add other api base url for API 2023-02-14 18:55:47 +08:00
ikechan8370
11f35af89e feat: add support for configurable reverse proxy url 2023-02-14 12:04:43 +08:00