Commit Graph

665 Commits

Author SHA1 Message Date
wood
55a42b299d Merge branch 'main' of https://github.com/woodchen-ink/one-api 2023-11-25 06:38:37 +08:00
wood
42ed66132d 改点颜色 2023-11-25 06:38:34 +08:00
wood chen
ecaada2cdf
Merge pull request #5 from woodchen-ink:songquanpeng-main
Songquanpeng-main
2023-11-24 12:11:27 -06:00
wood
aa808b0210 1 2023-11-25 02:10:28 +08:00
wood
c253a34537 Merge branch 'main' of https://github.com/songquanpeng/one-api into songquanpeng-main 2023-11-25 01:48:20 +08:00
JustSong
9889377f0e feat: support claude-2.x (close #736) 2023-11-24 21:39:44 +08:00
JustSong
b273464e77 docs: update readme 2023-11-24 21:23:16 +08:00
JustSong
b4e43d97fd docs: add pr template 2023-11-24 21:21:03 +08:00
Ian Li
3347a44023
feat: support Azure's Whisper model (#720) 2023-11-24 21:10:18 +08:00
Tillman Bailee
923e24534b
fix: add Date header for email (#742)
* 修复自建邮箱发送错误: INVALID HEADER Missing required header field: "Date"

* chore: fix style

---------

Co-authored-by: liyujie <29959257@qq.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-24 20:56:53 +08:00
ShinChven ✨
b4d67ca614
fix: add Message-ID header for email (#732)
* feat: Add Message-ID to email headers to comply with RFC 5322

- Extract domain from SMTPFrom
- Generate a unique Message-ID
- Add Message-ID to email headers

* chore: check slice length

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-24 20:52:59 +08:00
igophper
d85e356b6e
refactor: remove consumeQuota related logic (#738)
* feat: 删除relay-text中的consumeQuota变量

该变量始终为true,可以删除

* chore: remove useless code

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-24 20:42:29 +08:00
JustSong
495fc628e4 feat: support gpt-4 with vision (#683, #714) 2023-11-19 18:38:54 +08:00
JustSong
76f9288c34 feat: update request struct (close #708) 2023-11-19 17:50:30 +08:00
JustSong
915d13fdd4 docs: update readme (#724) 2023-11-19 17:22:35 +08:00
Ian Li
969f539777
fix: skip JSON deserialization when accessing transcriptions and translations (#718)
* fix: Skip JSON deserialization when accessing transcriptions and translations.

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-19 16:11:39 +08:00
Buer
54e5f8ecd2
feat: support cloudflare gateway for azure (#666)
* 🐛 Fix cloudflare gateway request failure

* 🐛 fix channel test url error
2023-11-19 15:52:35 +08:00
wood
ae006941c0 fixs bugsgagaga 2023-11-18 05:58:01 +08:00
wood
ba269a3c61 1 2023-11-18 05:40:01 +08:00
wood
172e8c8235 1 2023-11-18 05:31:56 +08:00
wood
aeb70460bb 1 2023-11-18 03:48:58 +08:00
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