Commit Graph

16 Commits

Author SHA1 Message Date
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