159 Commits (431de382dc41bee27eba8e4321f1cc64fac4776a)

Author SHA1 Message Date
ChenZhaoYu 431de382dc perf: input auto size 2 years ago
ChenZhaoYu b241240fc6 perf: 默认 systemMessage 2 years ago
ChenZhaoYu 40fa028408 fix: some error 2 years ago
ChenZhaoYu 15f3aac88e perf: 调整光标位置 2 years ago
puppywang c0f4af05e3
feat: add typing effect (#1017)
* feat: add typing effect

* fix: ts2339 xxx not exist on type 'never'

---------

Co-authored-by: WangYi <wangyi@windimg.com>
2 years ago
ChenZhaoYu 76cef650b4 chore: build rollback 2 years ago
assassinliujie 78bcf7f4ce
perf: optimized output (#962)
* Update index.ts

* Update index.vue

* Update index.ts
2 years ago
ChenZhaoYu c0a9fd5208 fix: 快速按下删除会话导致的问题 #917 2 years ago
ChenZhaoYu 07123b70ad chore: rolled back to clear the impact 2 years ago
assassinliujie b579d24d19
pref: message output optimization (#935)
* Update index.ts

修改后端,让保留打字机效果的同时优化前后端之间传输的内容,节省流量和性能

* Update index.vue

修改前端,和之前修改的后端匹配,保留打字机效果同时优化性能和流量传输

* chore: lint fix

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
KingTwinkle e2eeee455a
fix: local import error and NModal not as expected (#938) 2 years ago
吴杉(Shan Wu) 799af86739
perf: add localization for sider (#911) 2 years ago
ChenZhaoYu 9b0d7dbee8 fix: 移动端焦点不触发的问题 2 years ago
ChenZhaoYu 634c879108 perf: 自动焦点时移动端上的不便 2 years ago
ChenZhaoYu 9081b22ce9 perf: 移动端删除 chat 时,侧边栏应该收起 2 years ago
Redon 73e12b1fdd
fix: 移动端新建会话关闭侧边栏 (#813) 2 years ago
ChenZhaoYu 917feec5d8 fix: 重置时应该移除本地储存 2 years ago
ChenZhaoYu 630e88b8c4 fix: prompt store 样式问题 2 years ago
Peter Dave Hello 734eb7a3fb
feat: add zh-TW prompts in the Promt Store (#796) 2 years ago
ChenZhaoYu 5fee11323b perf: 网络连接时 500 自动跳转到主页 2 years ago
Allen 814c3a2565
feat: 切换 history 时自动聚焦输入框 (#735)
* feat: 修改 scrollToBottom 行为(当滚动条在底部或发送问题时才会进入自动滚动,滚轮向上滚动会中止自动滚动,方便复制和查看之前的代码; 切换 history 时自动聚焦输入框,方便直接输入文字,不用再次去点击输入框;)

* chore: 通过eslint检查

* perf: 清理重复功能

---------

Co-authored-by: Redon <790348264@qq.com>
2 years ago
ChenZhaoYu d2a22a3ee5 feat: PWA 默认不开启 2 years ago
Yi 92278932ef
chore: 显示原文时使用 .whitespace-pre-wrap (#779)
显示 ChatGPT 输出的原文时保留空格和换行
2 years ago
Liut e30217542d
fix line end with new-line in some backend (#474)
* fix line end with new-line in some backend

In backend with golang (like https://github.com/sashabaranov/go-openai), the responseText always has '\n'.

* feat: 补全遗漏

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
舜岳 31a84325d4
perf: scrollToBottom 改成 scrollToBottomIfAtBottom (#771) 2 years ago
舜岳 b1d0056429
perf: 重置回答时滚动定位至该回答 (#781)
* chore: 重置回答时滚动定位至该回答

* perf: format code

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
quzard 6ecc61ac5d
feat: 添加角色设定预留API 设定页(#768)
* add systemMessage

* perf: 优化代码和类型

* perf: 补全翻译和为以后做准备

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
Yi 47dc009505
feat: 添加用于显示回复消息原文的选项 (#672)
* feat: 添加显示用于原文的选项

* chore: 修复暗色主题下文本颜色问题

给输入和输出气泡添加了 css 类,用来处理在暗色主题下聊天气泡的文本颜色

* feat: 用户输入不应该被渲染,防止 xss

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
ChenZhaoYu f1584b60e8 fix: 手动重置异常的 loading 2 years ago
ChenZhaoYu d422a805f6 feat: 渲染的链接新窗口打开 2 years ago
ChenZhaoYu 560378fd45 fix: 添加 usingContext 缺省 2 years ago
ChenZhaoYu a8e9a24ca7 fix: highlight.js 控制台兼容性警告 2 years ago
ChenZhaoYu 95724845cf feat: session 返回接口方式做显示判断 2 years ago
pzcn e46d3685a0
feat: show api balance (#582)
* feat: show api balance

* Update index.ts

* 保留小数点后五位

* perf: 判断优化

---------

Co-authored-by: Redon <790348264@qq.com>
2 years ago
ChenZhaoYu b3cfe7a976 perf: 记录上下文设定保存到本地 2 years ago
CornerSkyless 951e9d8d39
perf: 优化移动端 prompt 商店样式 (#608)
* feat: 修改移动端 prompt 商店样式

* add: 修改移动端 prompt 商店样式

* perf: 清理代码

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
Hayden Chen c797ff5cb3
fix: 🐛 fix scroll bar style (#617) 2 years ago
Wisdom 25692f8371
fix: inverted parameter for before each function (#585) 2 years ago
ChenZhaoYu 3a1466bace fix: 修复导入、导出错误 2 years ago
ChenZhaoYu efc9e81e83 fix: 清空上下文时不应该重置会话标题 2 years ago
ChenZhaoYu db502e1412 feat: 权限输入框改为密码类型 2 years ago
ChenZhaoYu 0481726608 feat: 修改 Prompt Store 移动端样式 2 years ago
ChenZhaoYu 73bf8c01a9 feat: 语言设定改为下拉框选择 2 years ago
Peter Dave Hello 8a0cb90ccc
feat: improve zh-TW locale, translate new strings (#542) 2 years ago
ChenZhaoYu 0a9f9b618b feat: 调整界面 2 years ago
ChenZhaoYu af76b89fd4 feat: 仓库查询筛选 2 years ago
ChenZhaoYu de6632d631 feat: 仓库添加翻译 2 years ago
吴杉(Shan Wu) 7bebee202e
fix: Prompt商店在线导入可以导入两种recommend.json里提到的模板 (#516) (#521)
* fix(PromptStore): import prompt template using different dict keys

* chore(PromptStore): clear url field after downloading
2 years ago
Eason bc5e835f78
feat: support linux command line proxy standard (#308)
* feat: support linux command line proxy standard with env HTTPS_PROXY and ALL_PROXY

* chore: update docs for linux command linux proxy standard
2 years ago
Yige a4cfd0c380
fix: 修改最大行数与官方保持一致 (#502)
* chore: rename environment variables files

* docs: update README.md about .env file

* feat: support long reply

* chore: upgrade chatgpt package and set long reply to false default

* chore: set long reply to false default

* fix: change maxRows to 8

* feat: mobile max row

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago