Commit Graph

91 Commits

Author SHA1 Message Date
ChenZhoYu e3ce91cfa1 fix: model error 2024-05-17 23:56:45 +08:00
Peter Dave Hello e1a3308355
chore: replace EOL Node.js v19 w/ LTS v20 in engine spec (#2080)
Update the Node.js engine setting in service/package.json to use LTS v20
instead of the end-of-life v19. This aligns with our Dockerfile that
uses node:lts-alpine, which has been a while without issues. The update
also helps suppress the runtime warnings about engine compatibility:

> WARN  Unsupported engine: wanted: {"node":"^16 || ^18 || ^19"} (current: {"node":"v20.12.2","pnpm":"9.0.4"})
2024-05-16 09:40:06 +08:00
Peter Dave Hello f257a54604
feat: add GPT-4o support (#2082)
Reference:
- https://platform.openai.com/docs/models/gpt-4o
- https://openai.com/index/hello-gpt-4o/
2024-05-16 09:39:49 +08:00
L fa8874b6dd
update esno to fix tsx issue on Node v18.19 (#2083) 2024-05-16 09:39:33 +08:00
Peter Dave Hello f4f1d351b7
Add GPT-4 Turbo API the latest GA version (#2072)
Reference:
- https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
2024-04-16 14:59:51 +08:00
Peter Dave Hello 8dd447ce69
feat: improve GPT-3.5 Turbo 16k support (#2049)
Reference:
- https://platform.openai.com/docs/models/gpt-3-5-turbo
2024-03-11 13:02:19 +08:00
Lukin c520580cda
fix(server): compatible with gateway.ai.cloudflare.com (#2029) 2024-03-06 13:17:10 +08:00
Peter Dave Hello 15903fae38
feat: support the latest GPT-4 Turbo preview models (#2024)
This includes the latest:
- gpt-4-0125-preview
- gpt-4-turbo-preview

Reference:
- https://openai.com/blog/new-embedding-models-and-api-updates
2024-02-01 08:25:50 +08:00
Ed Burnette 15a6b19897
localization: Add additional English translations (#1987)
* Additional English translations
Provide an English version of the readme, and add a few translations
that were missing elsewhere

* Use browser language by default

* Support 'en' and 'vi' as languages

---------

Co-authored-by: Ed Burnette <ed.burnette@hiddenmind.ai>
2023-12-03 04:27:38 -06:00
Peter Dave Hello ed1e41c4f1
feat: support the latest GPT-4 Turbo (gpt-4-1106-preview) model (#1968)
Reference:
- https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
- https://openai.com/blog/new-models-and-developer-products-announced-at-devday#gpt-4-turbo-with-128k-context
2023-11-23 21:58:37 -06:00
BertramRay 6e272bb343
feat: 支持最新的gpt-3.5-turbo-16k模型 (#1789)
* fix: 增加 16k 模型支持

* fix: 修改判断逻辑

* fix: 修改 gpt-3.5-turbo tokens 判断逻辑

---------

Co-authored-by: ziyang <ziyang@dora.design>
2023-06-19 14:26:22 +08:00
24min d598dc65ce
fix(proxy url): change default proxy url (#1567) 2023-04-24 20:07:46 +08:00
舜岳 20aa35f209
chore: optimize code (#1328) 2023-04-09 22:14:33 +08:00
ChenZhaoYu ddc7066f4e chore: 默认 100 秒 2023-04-08 11:57: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
ChenZhaoYu abc4c3ad22 chore: 回退 chatgpt 包版本,原因:token 长回复报错 2023-04-03 16:19:38 +08:00
ChenZhaoYu c2b25a84c7 chore: default API_REVERSE_PROXY 2023-04-03 09:19:12 +08:00
ChenZhaoYu 553e239db3 chore: update .env.examples 2023-04-03 09:01:56 +08:00
ChenZhaoYu 4e4e41b0d6 chore: update deps 2023-04-03 08:51:04 +08:00
ChenZhaoYu 40fa028408 fix: some error 2023-03-31 13:37:07 +08:00
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>
2023-03-31 12:23:26 +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
cong 468bed7705
feat: allow user disable openai API debug log (#1041)
* feat: allow user disable openai API debug log

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

使用nginx限流会只识别为服务器ip,需启用trust proxy
2023-03-25 08:30:15 +08:00
Kid 57a1d6e3cd
fix: ESM error (#826) 2023-03-23 20:43:47 +08:00
hncboy 9c6a3d6110
feat: 增加 ChatGPTUnofficialProxyAPI 的模型自定义配置 (#632)
* feat: 增加 ChatGPTUnofficialProxyAPI 的模型自定义配置(#618)

* perf: 修改判断

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-03-22 19:00:58 +08:00
吴杉(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>
2023-03-22 18:31:04 +08:00
ChenZhaoYu bf48eae9fe feat: 更新依赖并兼容已存在的代理 2023-03-22 18:23:31 +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
xiaozhu e02ab1fbad
feat: 新增限流功能 (#718)
* 请求速率限制

* perf: 优化代码

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
2023-03-21 09:20:27 +08:00
ChenZhaoYu d1c15f58c4 perf: config 接口添加权限验证 2023-03-19 12:31:14 +08:00
ChenZhaoYu 08b5772420 feat: 查询余额使用 API_BASE_URL 参数 2023-03-17 13:19:03 +08:00
ChenZhaoYu 95ce026813 fix: 回退 chatgpt 版本导致的代理失效 2023-03-17 11:37:33 +08:00
ChenZhaoYu 95724845cf feat: session 返回接口方式做显示判断 2023-03-17 09:36:12 +08:00
ChenZhaoYu c5552893d7 chore: update deps and lint fix 2023-03-17 09:25:16 +08:00
pzcn e46d3685a0
feat: show api balance (#582)
* feat: show api balance

* Update index.ts

* 保留小数点后五位

* perf: 判断优化

---------

Co-authored-by: Redon <790348264@qq.com>
2023-03-17 09:21:25 +08:00
ChenZhaoYu 2ad7567548 perf: 优化部份判断 2023-03-17 08:57:27 +08:00
Kirk Lin 0b13846861
chore: extract proxy setup code into reusable function (#583) 2023-03-17 08:26:16 +08:00
ChenZhaoYu f4be5b985a chore: update deps 2023-03-12 21:10:40 +08:00
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
2023-03-12 19:38:59 +08:00
Yige 86d720ecee
fix: cors in auth_secret_key model (#499) 2023-03-12 18:47:44 +08:00
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
2023-03-10 13:23:22 +08:00
ChenZhaoYu 133a24e25f chore: update chatgpt 2023-03-10 13:11:36 +08:00
ChenZhaoYu c17cc16c0e chore: 异常打印和调整日志 2023-03-09 22:58:06 +08:00