CaIon
3c52a0991f
恢复渠道优先级可设置为负数
2023-12-26 23:49:57 +08:00
CaIon
b3f1da44dd
修复vision格式问题
2023-12-18 23:46:05 +08:00
CaIon
6a2ebf7578
预扣费增加用户余额检测
2023-12-05 17:11:37 +08:00
CaIon
6e744bd1a3
修改错误提示
2023-12-01 01:29:13 +08:00
CaIon
57d0fc3021
support base64 image
2023-11-19 18:59:35 +08:00
CaIon
cf663e7ac4
fix whisper-1
2023-11-19 16:35:37 +08:00
CaIon
e5c2524f15
fix image token calculate
2023-11-17 20:32:40 +08:00
CaIon
7e0d2606c3
support gpt-4-1106-vision-preview
2023-11-17 20:32:37 +08:00
CaIon
63cd3f05f2
support tts
2023-11-15 21:05:14 +08:00
CaIon
46930bc890
完全移除近似估算token功能
2023-11-11 01:55:19 +08:00
Calcium-Ion
7688e9f9dd
Merge branch 'songquanpeng:main' into main
2023-10-30 16:12:09 +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
CaIon
fc2ef52366
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# README.md
# go.mod
# go.sum
# model/log.go
# web/src/App.js
# web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
CaIon
2a3373cc8c
取消429自动禁用
2023-10-10 11:18:29 +08:00
JustSong
594f06e7b0
perf: lazy initialization for token encoders ( close #566 )
2023-09-29 17:56:11 +08:00
CaIon
929cd79ee7
feat: 防止渠道地址传到用户端
2023-09-27 01:02:45 +08:00
CaIon
80271b33ba
feat: 渠道新可选是否自动禁用功能
2023-09-25 18:44:10 +08:00
CaIon
985e26fd1b
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/log.go
# controller/relay-audio.go
# controller/relay-image.go
# controller/relay-text.go
# controller/relay.go
# middleware/distributor.go
# model/log.go
# web/src/components/OperationSetting.js
2023-09-17 20:59:12 +08:00
JustSong
959bcdef88
chore: update error code
2023-09-17 11:30:20 +08:00
CaIon
d1d789616f
feat: 避免请求出错时暴露渠道信息
2023-09-15 17:50:54 +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