ckt1031
b59fbafbc3
Updated model validation and removed size not
...
supported error in relayImageHelper function
2023-11-15 20:18:27 +08:00
ckt1031
cb36192c55
Added validation for prompt length in
...
relayImageHelper function
2023-11-15 20:16:50 +08:00
ckt1031
29fbd12870
Refactored variable name from
...
DalleGenerationImageAmountRatios to
DalleGenerationImageAmounts
2023-11-15 20:13:48 +08:00
ckt1031
6f5655ec7a
Added validation for number of generated images
...
and defined image generation ratios
2023-11-15 20:09:48 +08:00
ckt1031
7b5efd9f3e
Added error handling for unsupported image size in
...
relayImageHelper function
2023-11-15 20:01:14 +08:00
ckt1031
1768d1ef55
Refactored size ratio calculation in
...
relayImageHelper function
2023-11-11 16:03:30 +08:00
ckt1031
e00bc7bd3f
Fixed suspect or
2023-11-11 15:57:47 +08:00
cktsun1031
8361fbf4ef
Updated ImageRequest struct and OpenAIModels,
...
added new Dall-E models and size ratios
2023-11-07 14:54:04 +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
47c08c72ce
fix: check user quota when pre-consume quota
2023-10-01 12:49:40 +08:00
Xyfacai
ecf8a6d875
feat: supprt channel priority now & record channel id in log ( #484 )
...
* feat: 支持设置渠道优先级 & 日志中显示使用的渠道ID
* fix: 设置渠道优先级未更新 ability
* chore: update implementation
---------
Co-authored-by: Xiangyuan Liu <xiangyuan.liu@ui.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-17 19:18:16 +08:00
JustSong
42451d9d02
refactor: update logging related logic
2023-09-17 15:39:46 +08:00
JustSong
3da119efba
perf: reuse http client to reduce delay
2023-07-23 15:18:58 +08:00
ckt
b520b54625
feat: initial support of Dall-E ( #148 , #266 )
...
* feat: initial support of Dall-E
* fix: fix N not timed
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-07-15 12:30:06 +08:00
JustSong
f6fe34676f
refactor: split the relay controller
2023-06-19 10:28:55 +08:00