Commit Graph

644 Commits

Author SHA1 Message Date
wood
d118de25e4 Merge branch 'main' of https://github.com/songquanpeng/one-api 2023-11-18 03:48:51 +08:00
wood
df54515d60 1 2023-11-18 03:26:50 +08:00
Mikey
34d517cfa2
fix: cloudflare test & expose detailed info about test failures (#715)
* fix: cloudflare test & expose detailed info about test failures

* fix: cloudflare test & expose detailed info about test failures

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 21:45:55 +08:00
ckt1031
ddcaf95f5f
feat: support tts model (#713)
* Added support for Text-to-Speech models and
endpoints

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 21:18:51 +08:00
ckt1031
1d15157f7d
feat: keep sync with dall-e updates (#679)
* Updated ImageRequest struct and OpenAIModels,
added new Dall-E models and size ratios

* Fixed suspect `or`

* Refactored size ratio calculation in
relayImageHelper function

* Updated the format of resolution keys in
DalleSizeRatios map

* Added error handling for unsupported image size in
relayImageHelper function

* Added validation for number of generated images
and defined image generation ratios

* Refactored variable name from
DalleGenerationImageAmountRatios to
DalleGenerationImageAmounts

* Added validation for prompt length in
relayImageHelper function

* Updated model validation and removed size not
supported error in relayImageHelper function

* Refactored image size and model validation in
relayImageHelper function

* chore: discard binary file

* chore: update impl

---------

Co-authored-by: cktsun1031 <65409152+cktsun1031@users.noreply.github.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 20:03:16 +08:00
管宜尧
de7b9710a5
fix: fix PaLM not working issue (#667)
* bugfix for #515 最新版本谷歌PaLM模型无法使用

* update

* chore: remove unrelated file

* chore: add comment

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 19:40:59 +08:00
wood
5e503d671e 改点样式 2023-11-16 05:02:34 +08:00
wood
05ee4d5977 一些按钮改为图标 2023-11-16 03:21:36 +08:00
wood
0f51100890 1 2023-11-15 23:30:35 +08:00
wood
9cab86b86c 修改日志详情 2023-11-15 23:30:04 +08:00
wood
bff5456313 小改动 2023-11-15 04:45:14 +08:00
wood
876e0d429b 前端改为美元展示 2023-11-15 04:34:59 +08:00
wood
fff889742b 修改日志详情为模型单价 2023-11-15 03:13:31 +08:00
wood
724ca3ccd8 update 2023-11-11 23:13:46 +08:00
wood
9382281839 Merge branch 'main' of https://github.com/songquanpeng/one-api into songquanpeng-main 2023-11-11 23:13:38 +08:00
wood
96793c3e9c 1 2023-11-11 03:21:46 +08:00
wood
49ea44c65b 日志修改详情显示 2023-11-11 02:05:15 +08:00
Dafei Zhao
58bb3ab6f6
fix: fix channel_id column name (#681, close #688) 2023-11-10 21:50:52 +08:00
qingfengfenga
d306cb5229
feat: add improve docker-compose.yml and support fast startup (#685)
Co-authored-by: 王彦朋 Penn Wang <penn.wang@digitwin.com.cn>
2023-11-10 21:40:00 +08:00
Yuhang
6c5307d0c4
docs: add deploy to zeabur button (#693)
* Update README.md

* Update README.en.md

* Update README.ja.md
2023-11-10 21:20:59 +08:00
Baksi
7c4505bdfc
fix: numeric sorting in tables (#695)
* Update sorting method for id

* Update sorting method for id (token)

* Update sorting method for id (redemptions)

* Update sorting method for id (channel)

* chore: use same logic for all tables

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-10 21:20:05 +08:00
Mikey
9d43ec57d8
feat: sync pricing for new 1106 models (#696)
* feat: sync pricing for new 1106 models

* chore: change ratio after 2023-12-11

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-10 21:08:23 +08:00
wood
9bc11bde28 1 2023-11-09 06:15:58 +08:00
wood
18425b1f44 修改宽度 2023-11-09 06:15:31 +08:00
wood
cf1ed818cc 1 2023-11-09 01:04:34 +08:00
wood
edbc2d219c 修改宽度 2023-11-09 00:30:07 +08:00
wood
8d4261e402 Merge branch 'main' of https://github.com/woodchen-ink/one-api 2023-11-09 00:19:09 +08:00
wood
1c33a899d2 显示日志,但是不显示用户组倍率 2023-11-09 00:19:06 +08:00
JustSong
e5311892d1 docs: update readme 2023-11-08 23:17:12 +08:00
wood chen
07a4f4d718
Update README.md 2023-11-08 16:04:53 +08:00
wood chen
be76fa05d0
Update README.md 2023-11-08 00:33:52 +08:00
wood
038396acdd fix gagagagagaga 2023-11-08 00:30:19 +08:00
wood
6d9ae196d6 1 2023-11-08 00:19:46 +08:00
wood
c5a271dec4 增加新模型 2023-11-07 16:47:40 +08:00
wood
ecce8b234f 1 2023-11-07 01:45:50 +08:00
wood
2b30d22a7f 1 2023-11-07 01:43:47 +08:00
wood
825374c334 [x] 当用户充值达到5刀时,自动提升为vip分组,具体金额可在web\src\pages\TopUp\index.js调整;
[x] 修改颜色
[x] 日志页面新增快速筛选日期、修复渠道ID查询、自动更新消耗额度、删除日志详情(因为没有太大意义);
[x] 用户管理界面,支持快速设置用户组,在`web\src\components\UsersTable.js`处修改相关值;
[x] 令牌界面,删除无用的多种复制、聊天等按钮;
[x] 删除 系统访问令牌;
2023-11-07 01:43:09 +08:00
wood
eb82fb79a2 修复渠道测试功能,修复日志页面根据渠道ID筛选功能,更新统计功能,改为自动更新 2023-11-06 06:33:01 +08:00
wood
436ba6df72 update 2023-11-05 20:49:28 +08:00
wood
c51417d4e6 Merge branch 'main' of https://github.com/woodchen-ink/one-api 2023-11-05 19:58:04 +08:00
wzxjohn
bc7c9105f4
chore: update quota calc logic (close #599) (#627)
* fix: change quota calc code (close #599)

Use float64 during calc and do math.Ceil after calc. This will result in the quota being used slightly more than the official standard, but it will be guaranteed that it will not be less.

* chore: remove blank line

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-05 19:15:06 +08:00
wood chen
3fe76c8af7
fix: fix Cloudflare AI Gateway channel test support (#639)
* 当使用Cloudflare AI Gateway时,支持openai渠道测试

* refactor: change logic

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-05 19:08:25 +08:00
papersnake
c70c614018
feat: support chatglm_turbo (#648)
* feat: support chatglm_turbo

* fix: remove characterglm
2023-11-05 17:59:38 +08:00
wood
d065184b70 update 2023-11-04 00:01:20 +08:00
Baksi
0d87de697c
fix: fix typo (#651) 2023-11-02 22:24:22 +08:00
wood chen
4b4ee90162
Merge branch 'songquanpeng:main' into main 2023-10-31 03:41:51 -05:00
MaricoHan
aec343dc38
feat: support xunfei v3 (#637) 2023-10-29 22:03:01 +08:00
wood
d0910f72e1 支持ai gateway渠道的测试 2023-10-27 01:21:54 +08:00
wood chen
ed3900d619
Merge branch 'songquanpeng:main' into main 2023-10-25 05:51:19 -05:00
wood
46b779d42c update 2023-10-24 20:17:37 +08:00