JustSong
6acb9537a9
fix: try to return a more meaningful error message ( close #817 )
2023-12-17 18:33:27 +08:00
Qiying Wang
4c5feee0b6
feat: add image counter for gpt-4 vision ( #795 )
2023-12-10 19:39:46 +08:00
Tillman Bailee
a3f80a3392
feat: enable channel when test succeed ( #771 )
...
* 增加功能: 渠道 - 测试所有通道; 设置 - 运营设置 - 监控设置 - 成功时自动启用通道
* refactor: update implementation
---------
Co-authored-by: liyujie <29959257@qq.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-03 20:10:57 +08:00
ShinChven ✨
b7570d5c77
feat: support dalle for Azure ( #754 )
...
* 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
* feat: Add Azure compatibility for relayImageHelper
- Handle Azure channel requestURL compatibility
- Set api-key header for Azure channel authentication
- Handle Azure channel request body
fixes: https://github.com/songquanpeng/one-api/issues/751
* refactor: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-03 17:34:59 +08:00
JustSong
0e73418cdf
fix: fix log recording & error handling for relay-audio
2023-11-26 12:05:16 +08:00
JustSong
495fc628e4
feat: support gpt-4 with vision ( #683 , #714 )
2023-11-19 18:38:54 +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
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
vc
3b483639a4
feat: add cloudflare ai gateway support for image & audio ( #607 )
...
* Update channel-test.go
* Update relay-audio.go
* Update relay-image.go
* chore: using a util function
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 17:50:52 +08:00
JustSong
594f06e7b0
perf: lazy initialization for token encoders ( close #566 )
2023-09-29 17:56:11 +08:00
JustSong
959bcdef88
chore: update error code
2023-09-17 11:30:20 +08:00
JustSong
fdb2cccf65
perf: initialize all token encoder when starting ( close #459 , close $460)
2023-08-26 13:02:02 +08:00
JustSong
a3e267df7e
fix: fix error response ( close #468 )
2023-08-26 12:37:45 +08:00
JustSong
ac7c0f3a76
fix: disable channel when 401 received ( close #467 )
2023-08-26 12:05:18 +08:00
igophper
ca512f6a38
refactor: add set event stream headers func ( #402 )
...
封装流式传输响应头的设置
2023-08-12 21:55:18 +08:00
igophper
476a46ad7e
fix: fix finish_reason fileld not fully compatible with OpenAI ( close #372 , #373 )
...
* optimize:unify finish_reason field
* refactor: use a global stop finish reason
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-12 11:04:53 +08:00
JustSong
0495b9a0d7
fix: using whitelist when disabling channels ( close #292 )
2023-07-22 18:15:30 +08:00
JustSong
701aaba191
feat: able to approximate token ( close #207 )
2023-07-04 19:54:13 +08:00
quzard
b09daf5ec1
chore: update countTokenMessages ( #238 )
2023-07-03 09:42:34 +08:00
JustSong
f6fe34676f
refactor: split the relay controller
2023-06-19 10:28:55 +08:00
JustSong
7c7eb6b7ec
fix: now the input field can be array type now ( close #149 )
2023-06-12 16:11:57 +08:00
JustSong
fa79e8b7a3
fix: use gpt-3.5's encoder if not found ( close #110 )
2023-05-21 11:11:19 +08:00
JustSong
3711f4a741
feat: support channel ai.ls now ( close #99 )
2023-05-19 11:07:17 +08:00
quzard
7c6bf3e97b
fix: make the token number calculation more accurate ( #101 )
...
* Make token calculation more accurate.
* fix: make the token number calculation more accurate
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-05-19 09:41:26 +08:00