56 Commits (527c8613b210a8f59bb4f44d8926774d40854bc4)

Author SHA1 Message Date
舜岳 20aa35f209
chore: optimize code (#1328) 2 years ago
ChenZhaoYu ddc7066f4e chore: 默认 100 秒 2 years ago
ZuoNing 439104f195
fix: 查询使用量支持代理&修正使用量文案 (#1296)
* fix: 查询使用量支持代理&修正使用量文案

* fix: 修复默认错误

* chore: 移除打印

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
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>
2 years ago
wangxi 1187d88593
fix: 修复API余额查询 (#1174)
* fix: 使API余额查询可用

* chore: 调整计算方式

* perf: 余额描述变更

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
ChenZhaoYu c2b25a84c7 chore: default API_REVERSE_PROXY 2 years ago
ChenZhaoYu 40fa028408 fix: some error 2 years ago
yimiaoxiehou 85543deca3
feat: 添加 socks5 代理认证 (#999)
* support socks5 proxy auth

* Update build_docker.yml

* Update README.md

* perf: 增加判断

* fix: lint

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
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
cong 468bed7705
feat: allow user disable openai API debug log (#1041)
* feat: allow user disable openai API debug log

* chore: fix pnpm lock
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 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
gitgitgogogo fb8ad3790d
fix: 反向代理限流失效 (#863)
https://docs.colyseus.io/zh_hk/colyseus/how-to/rate-limit/

使用nginx限流会只识别为服务器ip,需启用trust proxy
2 years ago
Kid 57a1d6e3cd
fix: ESM error (#826) 2 years ago
hncboy 9c6a3d6110
feat: 增加 ChatGPTUnofficialProxyAPI 的模型自定义配置 (#632)
* feat: 增加 ChatGPTUnofficialProxyAPI 的模型自定义配置(#618)

* perf: 修改判断

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
吴杉(Shan Wu) 3e509f6663
feat: 当用gpt-4的API 时增加可用的 Max Tokens (#729)
* fix: 用GPT-4 API时增加max token

* style: eslint fix

---------

Co-authored-by: Redon <790348264@qq.com>
2 years ago
ChenZhaoYu bf48eae9fe feat: 更新依赖并兼容已存在的代理 2 years ago
quzard 6ecc61ac5d
feat: 添加角色设定预留API 设定页(#768)
* add systemMessage

* perf: 优化代码和类型

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

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
xiaozhu e02ab1fbad
feat: 新增限流功能 (#718)
* 请求速率限制

* perf: 优化代码

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2 years ago
ChenZhaoYu d1c15f58c4 perf: config 接口添加权限验证 2 years ago
ChenZhaoYu 08b5772420 feat: 查询余额使用 API_BASE_URL 参数 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 2ad7567548 perf: 优化部份判断 2 years ago
Kirk Lin 0b13846861
chore: extract proxy setup code into reusable function (#583) 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 86d720ecee
fix: cors in auth_secret_key model (#499) 2 years ago
Yige 076c56d1d9
feat: 支持长回复 (#450)
* 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
2 years ago
ChenZhaoYu c17cc16c0e chore: 异常打印和调整日志 2 years ago
ChenZhaoYu 01edad7717 fix: 修复默认模型判断错误 2 years ago
ChenZhaoYu eff787a2b7 chore: 移除两种报错 2 years ago
ChenZhaoYu 7d52e6dd1e feat: model typo 2 years ago
xieccc d3daa654a7
feat: 新增API模型配置项 (#404)
* chore: 更新文档

* Improve zh-TW locale (#379)

* fix: 移动端样式

* feat: typo

* fix: 调整滚动回原样

* feat: 新增API模型配置项

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
2 years ago
Redon ffd4da91cf
chore: version 2.10.0
* feat: 权限验证功能

* chore: v2.10.0

* feat: 500 服务异常页面

* feat: 只有结束才会滚动到底部

* chore: 修改 CHANGELOG

* chore: 不存在时输出默认报错
2 years ago
ChenZhaoYu 8e1b4edc91 feat: 转义状态码 2 years ago
ChenZhaoYu 50e672e79b fix: 调整部分问题 2 years ago
Redon 0fdf75eba0
chore: version 2.9.2 (#261)
* feat: 添加  OPENAI_API_BASE_URL 可选参数[#249]

* fix: 生成的代码块不能复制的问题[#251][#260]

* perf: 限制高分屏上的宽度[#257]

* perf: 文字按单词换行[#215][#225]

* perf: highlight.js 新语法警告

* fix: 移动端输入框不会被键盘弹起[#256]

* chore: 更新文档

* chore: version 2.9.2
2 years ago
InterestingDarkness 20d6135658
Add support for SOCKS proxy in ChatGPTAPI fetch (#214) 2 years ago
Redon 32ebbec8ad
feat: 增加带格式的复制 (#182)
* feat: 增加带格式的复制

* feat: 移除前端超时设定

* chore: update deps

* feat: 添加权限页面

* feat: 设定页面优化

* feat: 更新 chatgpt 以支持 `gpt-3.5-turbo-0301`

* chore: version 2.9.0
2 years ago
Redon 1406292405
fix: 修复部份 `bug` (#131)
* fix: 主题模式图标不一致的问题[#125]

* fix: 修复样式问题[#123][#126]

* perf: 优化代码和添加类型
2 years ago
puppywang 628187f5c3
feat: add proxy support and fix streaming mode (#122) 2 years ago
Redon b6fd9ae766
feat: v2.7.2 消息样式美化和优化代码 (#111)
* perf: 优化代码

* feat: 美化消息,支持 markdown 全语法

* chore: version 2.7.2
2 years ago
Redon 1e2f893ef6
chore: version 2.7.1 (#99)
* feat: 调整流输出为实验性质

* feat: 取消回答按钮

* feat: 更新版本查看

* feat: 单消息复制和删除功能

* feat: 消除警告

* feat: 优化删除功能

* chore: version 2.7.1
2 years ago
Redon 09359c3c46
feat: 流式输出内容 (#93)
* feat: 流式输出内容

* fix: 修复异常状态

* feat: markdown 链接颜色
2 years ago
Redon f40048fb08
feat: 支持 accessToken 请求 web api 调用 (#80)
* feat: 支持 markdown 格式和图片

* perf: 重载的时候滚动条保持

* chore: version 2.5.2

* feat: 添加文字换行

* chore: 添加新封面

* chore: 更新 cover

* feat: 支持 web api 的形式

* feat: 支持新模型和调整超时

* feat: 添加反向代理

* chore: 更新 README.md

* feat: 添加超时和反向代理显示

* chore: version 2.6.0

* chore: update README
2 years ago
wang ha ha bbd8ff773b
添加 docker 镜像打包部署脚本 (#27)
* 删除env

* 修改生产依赖安装缺失。

* 添加docker镜像构建

* no message

* 修改超时时间。

* 修复镜像构建错误。

* 修改环境变量获取baseapi

* 修改前端链接获取位置。

* 删除默认env

* 添加会 .env 文件,但是注释掉。

* 使用默认 api。

* 添加前端调试和部署路由兼容。

* 删除key

* Update .env

* Delete build_docker.yml

暂时不做 `git hooks` 处理

* Delete .gitignore

* Delete Dockerfile

工作路径好像有点错误,先不合并

* Delete build.sh

工作路径好像有点错误,先不合并

---------

Co-authored-by: 王金海(haha.wang) <wanghaha@huolala.cn>
Co-authored-by: haha.wang <haha.wang@huolala.cn>
Co-authored-by: Redon <790348264@qq.com>
2 years ago
ChenZhaoYu 981c036542 fix: type error 2 years ago
ChenZhaoYu c8745f2e21 feat: 调整超时时间 2 years ago