Commit Graph

179 Commits

Author SHA1 Message Date
ChenZhaoYu 3b033d0ed4 feat: 补充语言列表 2023-04-26 08:26:50 +08:00
ChenZhaoYu dd20e9aea6 chore: 移除无用文件 2023-04-26 08:18:19 +08:00
aquaratixc 838679f837
chore: Update index.ts (#1570)
* Update index.ts

Added russian translation

* fix: locale name

---------

Co-authored-by: Redon <790348264@qq.com>
2023-04-24 20:15:28 +08:00
aquaratixc ac8b69dfd4
Create ru-RU.ts (#1571)
Added russian localization
2023-04-24 20:05:41 +08:00
wanglong001 226ce2bded
[fix] markdown 表格内没有换行 (#1492) 2023-04-17 21:10:36 +08:00
Peter Dave Hello 7583985f44
chore: Improve zh-TW locale (#1460) 2023-04-16 15:18:53 +08:00
Peter Dave Hello 537872968c
Let's make GitHub happy (#1453) 2023-04-15 16:35:33 +08:00
Kamilake eed33fbb0e
feat: Added Korean translation (#1372)
* add ko-KR

* oops

* type-check & delete unused comments
2023-04-12 09:34:36 +08:00
idawnwon da04383772
fix: default return in `useLanguange()` hook (#1352)
if `setLocale('zh-CN')`, `return` should be `zhCN`, not `enUS`.
2023-04-10 21:29:03 +08:00
ChenZhaoYu 05a241408e fix: conversationOptions 2023-04-10 08:24:16 +08:00
ChenZhaoYu 44f00c95cd fix: 调整光标到底部 2023-04-08 11:49:41 +08:00
ZuoNing 439104f195
fix: 查询使用量支持代理&修正使用量文案 (#1296)
* fix: 查询使用量支持代理&修正使用量文案

* fix: 修复默认错误

* chore: 移除打印

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-04-08 11:47:00 +08:00
quzard 86bba7d8f3
feat: 添加自定义 temperature 和 top_p (#1260)
* 在设置的高级面板里自定义temperature和top_p

* change default temperature from 0.8 to 0.5

* pref: 检查代码,增加仅 api 的接口判断

* chore: 锁定 pnpm-lock.yaml

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-04-07 14:32:09 +08:00
wangxi 1187d88593
fix: 修复API余额查询 (#1174)
* fix: 使API余额查询可用

* chore: 调整计算方式

* perf: 余额描述变更

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-04-04 08:27:16 +08:00
RyanzeX b07f01b0cf
chore: 引导用户触发提示词 (#1183) 2023-04-04 07:54:05 +08:00
LeafSummer 9b66fed26e
fix: requestOptions (#1188)
修复页面上重复执行onRegenerate操作,会丢失上下文的问题
2023-04-04 07:53:37 +08:00
ChenZhaoYu 4e4e41b0d6 chore: update deps 2023-04-03 08:51:04 +08:00
vchenpeng 5594b0baa9
fix: 空引用显示undefined (#1103)
Co-authored-by: peng.chen <peng.chen@freemud.com>
2023-04-03 08:48:59 +08:00
Fog3211 e2ad3fe248
fix: x-scrollbar height (#1153)
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
2023-04-03 08:25:07 +08:00
ChenZhaoYu 9bd88eac84 fix: 宽度问题 2023-03-31 14:52:54 +08:00
ChenZhaoYu 431de382dc perf: input auto size 2023-03-31 14:43:40 +08:00
ChenZhaoYu b241240fc6 perf: 默认 systemMessage 2023-03-31 13:42:16 +08:00
ChenZhaoYu 40fa028408 fix: some error 2023-03-31 13:37:07 +08:00
ChenZhaoYu 15f3aac88e perf: 调整光标位置 2023-03-31 13:20:55 +08:00
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>
2023-03-31 11:50:32 +08:00
ChenZhaoYu 76cef650b4 chore: build rollback 2023-03-28 16:06:11 +08:00
assassinliujie 78bcf7f4ce
perf: optimized output (#962)
* Update index.ts

* Update index.vue

* Update index.ts
2023-03-28 15:47:40 +08:00
ChenZhaoYu c0a9fd5208 fix: 快速按下删除会话导致的问题 #917 2023-03-28 13:48:49 +08:00
ChenZhaoYu 07123b70ad chore: rolled back to clear the impact 2023-03-28 13:20:55 +08:00
assassinliujie b579d24d19
pref: message output optimization (#935)
* Update index.ts

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

* Update index.vue

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

* chore: lint fix

---------

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

* chore: 通过eslint检查

* perf: 清理重复功能

---------

Co-authored-by: Redon <790348264@qq.com>
2023-03-22 19:53:21 +08:00
ChenZhaoYu d2a22a3ee5 feat: PWA 默认不开启 2023-03-22 19:42:40 +08:00
Yi 92278932ef
chore: 显示原文时使用 .whitespace-pre-wrap (#779)
显示 ChatGPT 输出的原文时保留空格和换行
2023-03-22 19:42:01 +08:00
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>
2023-03-22 18:49:40 +08:00
舜岳 31a84325d4
perf: scrollToBottom 改成 scrollToBottomIfAtBottom (#771) 2023-03-22 18:00:53 +08:00
舜岳 b1d0056429
perf: 重置回答时滚动定位至该回答 (#781)
* chore: 重置回答时滚动定位至该回答

* perf: format code

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-03-22 17:54:29 +08:00
quzard 6ecc61ac5d
feat: 添加角色设定预留API 设定页(#768)
* add systemMessage

* perf: 优化代码和类型

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

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-03-22 17:47:07 +08:00
Yi 47dc009505
feat: 添加用于显示回复消息原文的选项 (#672)
* feat: 添加显示用于原文的选项

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

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

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

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-03-21 08:44:40 +08:00
ChenZhaoYu f1584b60e8 fix: 手动重置异常的 loading 2023-03-19 18:12:49 +08:00
ChenZhaoYu d422a805f6 feat: 渲染的链接新窗口打开 2023-03-17 16:06:55 +08:00