Commit graph

449 commits

Author SHA1 Message Date
ikechan8370
4bee340d24 fix: import problem 2023-02-25 16:03:29 +08:00
ikechan8370
94c655367e fix: let sharp be optional 2023-02-25 15:58:16 +08:00
ikechan8370
5fceef37ec feat: support dalle image variation 2023-02-25 15:23:47 +08:00
ikechan8370
3073ca91cf fix: dalle cooldown time 2023-02-25 11:51:54 +08:00
ikechan8370
8c9c098e25 feat: support dalle api 2023-02-25 11:38:34 +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
ikechan8370
38f726d92e
更新 config.js 2023-02-23 09:52:48 +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
f235552e2b feat: add prompt block words 2023-02-22 12:22:23 +08:00
ikechan8370
a2c4d516a3 fix: fix null conversation problems 2023-02-22 12:01:14 +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
ikechan8370
b4c10d5c77 fix: restart error 2023-02-20 13:40:17 +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
d8b415f58a fix: add api3 debug text output 2023-02-19 15:26:24 +08:00
ikechan8370
6da40e3843 fix: vulnerability problems 2023-02-19 01:19:08 +08:00
ikechan8370
4cdaa70c22 feat: delete conversation beta 2023-02-18 15:10:57 +08:00
ikechan8370
1e89fe6a94 fix: remove debug code 2023-02-18 13:02:34 +08:00
ikechan8370
d8265ba1d2 fix: remove useless code 2023-02-18 12:35:32 +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
5237975fbd fix: ptimeout problem 2023-02-15 13:11:03 +08:00
ikechan8370
faf3612c96 fix: ptimout not defined 2023-02-15 12:38:10 +08:00
ikechan8370
ca83acb3c7 fix: change default timeout 2023-02-15 11:37:42 +08:00
ikechan8370
23b16a7f85 fix: bing timeout error 2023-02-15 11:32:45 +08:00
ikechan8370
bd934fd970 fix: API3 conversation bug 2023-02-15 00:52:15 +08:00
ikechan8370
4ba1c80cc0 fix: API3 conversation bug 2023-02-15 00:49:48 +08:00
ikechan8370
b5e8ad1034 fix: change error msg 2023-02-14 23:36:48 +08:00
ikechan8370
133eb0e87d fix: JSON parse error 2023-02-14 23:16:08 +08:00
ikechan8370
4330e61dc3 fix: add 429 error 2023-02-14 23:13:05 +08:00
ikechan8370
e5853fdb4b fix: debug 2023-02-14 23:08:06 +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
d69b46f188 fix: 500 error 2023-02-14 13:59:44 +08:00
ikechan8370
d58c5e061e fix: plus user use the new model, too. 2023-02-14 13:49:16 +08:00
ikechan8370
d247ddbf42 fix: change model for browser according to chatgpt 2023-02-14 13:30:37 +08:00
ikechan8370
972c0834e1
fix: add plus support for browser based solution 2023-02-13 15:46:55 +08:00
ikechan8370
2657dead17 fix: add loop to ensure login 2023-02-12 00:02:22 +08:00
ikechan8370
053a43fcc1 fix: wrong args in chrome 2023-02-11 23:34:57 +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
bdafec9a21
Use chatgpt-api (#106)
* feat: use the latest api from chatgpt-api

* feat: use the latest api from chatgpt-api
2023-02-02 14:33:26 +08:00
ikechan8370
f9e432fcce
feat: use the latest api from chatgpt-api (#105) 2023-02-02 14:29:34 +08:00
ikechan8370
fc715e302e
fix: JSON parse error (maybe) 2023-01-10 20:36:20 +08:00
葛胤池
e2baa4dfc1 fix: 修复了另一个可能导致not sign in得问题 2022-12-20 20:22:33 +08:00
葛胤池
89dd029d0e fix: not signed问题 2022-12-19 12:34:54 +08:00
葛胤池
4df0addffb fix: use only one browser instance with debbugger url endpoint 2022-12-17 13:07:33 +08:00
葛胤池
d0dcc50764 feat: 暂时不使用chatgpt-api库,拷贝了部分其代码进行修改 2022-12-17 11:35:59 +08:00
葛胤池
bc09525187 feat: add auth support by puppeteer.
Still maybe 403
2022-12-13 15:43:17 +08:00
葛胤池
70044eb6c0 feat: add picture mode 2022-12-10 19:45:54 +08:00