Commit Graph

38 Commits

Author SHA1 Message Date
CaIon
65972ad47e feat: 添加成功时自动启用通道功能, close #27 2024-02-01 18:52:39 +08:00
CaIon
51c8c66630 fix: support AI Gateway, close #52 2024-02-01 17:48:55 +08:00
CaIon
20d07d3fcc fix: fix tool calls 2024-01-31 01:41:38 +08:00
CaIon
de6fbc014f feat: support Azure dall-e 2024-01-09 15:46:45 +08:00
CaIon
de69eb592e support gemini-pro-vision 2023-12-27 16:32:54 +08:00
CaIon
b5b6fcef82 恢复渠道优先级可设置为负数 2023-12-26 23:49:57 +08:00
CaIon
f24a1da7f3 修复vision格式问题 2023-12-18 23:46:05 +08:00
CaIon
a539b200e1 预扣费增加用户余额检测 2023-12-05 17:11:37 +08:00
CaIon
35a3c61021 修改错误提示 2023-12-01 01:29:13 +08:00
CaIon
2543e98bea support base64 image 2023-11-19 18:59:35 +08:00
CaIon
36173b7968 fix whisper-1 2023-11-19 16:35:37 +08:00
CaIon
1f3787eff2 fix image token calculate 2023-11-17 20:32:40 +08:00
CaIon
7115390fc8 support gpt-4-1106-vision-preview 2023-11-17 20:32:37 +08:00
CaIon
9d68527654 support tts 2023-11-15 21:05:14 +08:00
CaIon
2390c2cb71 完全移除近似估算token功能 2023-11-11 01:55:19 +08:00
Calcium-Ion
f439c4d553 Merge branch 'songquanpeng:main' into main 2023-10-30 16:12:09 +08:00
vc
46f12bc4fa 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
ba7e6324d3 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
ee1edbcc91 取消429自动禁用 2023-10-10 11:18:29 +08:00
JustSong
8f4b357fcb perf: lazy initialization for token encoders (close #566) 2023-09-29 17:56:11 +08:00
CaIon
08442b7b3e feat: 防止渠道地址传到用户端 2023-09-27 01:02:45 +08:00
CaIon
cba411ee9e feat: 渠道新可选是否自动禁用功能 2023-09-25 18:44:10 +08:00
CaIon
23d9554415 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
0ff78b0705 chore: update error code 2023-09-17 11:30:20 +08:00
CaIon
76c0c7918e feat: 避免请求出错时暴露渠道信息 2023-09-15 17:50:54 +08:00
JustSong
574be5bd1d perf: initialize all token encoder when starting (close #459, close $460) 2023-08-26 13:02:02 +08:00
JustSong
5ac2eac15f fix: fix error response (close #468) 2023-08-26 12:37:45 +08:00
JustSong
2193d46b17 fix: disable channel when 401 received (close #467) 2023-08-26 12:05:18 +08:00
igophper
c4e10c561a refactor: add set event stream headers func (#402)
封装流式传输响应头的设置
2023-08-12 21:55:18 +08:00
igophper
7cd99c186e 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
ea767633ea fix: using whitelist when disabling channels (close #292) 2023-07-22 18:15:30 +08:00
JustSong
16b6ace078 feat: able to approximate token (close #207) 2023-07-04 19:54:13 +08:00
quzard
af6c2f475e chore: update countTokenMessages (#238) 2023-07-03 09:42:34 +08:00
JustSong
c02892ea6a refactor: split the relay controller 2023-06-19 10:28:55 +08:00
JustSong
6b6027d142 fix: now the input field can be array type now (close #149) 2023-06-12 16:11:57 +08:00
JustSong
577daf342d fix: use gpt-3.5's encoder if not found (close #110) 2023-05-21 11:11:19 +08:00
JustSong
05de29c830 feat: support channel ai.ls now (close #99) 2023-05-19 11:07:17 +08:00
quzard
d15ca33175 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