Commit Graph

57 Commits

Author SHA1 Message Date
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
JustSong
4d65a13ae9 feat: support Tencent's model (close #519) 2023-10-03 14:19:03 +08:00
JustSong
51db57677e chore: add MEMORY_CACHE_ENABLED env variable 2023-09-29 11:38:27 +08:00
CaIon
b01e567c57 feat: 渠道新可选是否自动禁用功能 2023-09-25 18:53:59 +08:00
CaIon
cba411ee9e feat: 渠道新可选是否自动禁用功能 2023-09-25 18:44:10 +08:00
CaIon
87160ec35c fix bug 2023-09-18 23:06:00 +08:00
Calcium-Ion
7188dedd27 Merge branch 'songquanpeng:main' into main 2023-09-18 22:52:10 +08:00
JustSong
1661d34f7b fix: fix unable to set zero value for base url & model mapping 2023-09-18 22:07:17 +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
315d7e8692 refactor: update logging related logic 2023-09-17 15:39:46 +08:00
CaIon
6ca32631bb fix bug 2023-09-09 04:29:00 +08:00
CaIon
a71b737a2c 合并请求 2023-09-09 03:19:55 +08:00
CaIon
c0636950c0 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	controller/relay.go
#	main.go
#	middleware/distributor.go
2023-09-09 03:15:55 +08:00
CaIon
f73ecc57c2 移除不必要的功能 2023-09-09 03:11:42 +08:00
JustSong
fa0fedff5c chore: pass through error out 2023-09-03 21:31:58 +08:00
JustSong
8e0a744da3 feat: support aiproxy's library 2023-09-03 12:51:59 +08:00
CaIon
a4cf25f4c6 修复多路复用bug 2023-08-31 00:44:16 +08:00
JustSong
1966eb712e feat: supper whisper now (close #197) 2023-08-27 15:28:23 +08:00
CaIon
e60239c93d Merge remote-tracking branch 'origin/main'
# Conflicts:
#	controller/relay-text.go
#	go.mod
#	web/src/components/PersonalSetting.js
#	web/src/components/TokensTable.js
#	web/src/pages/Home/index.js
2023-08-25 00:51:02 +08:00
滔哥
ad3aef34a7 feat: support xunfei's v2 api (#442, close #440)
* 兼容讯飞v2接口

* Revert "兼容讯飞v2接口"

This reverts commit 21f05d1294b8693d0a21664a23ec04f028b9b117.

* fix: fix implementation

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-08-19 17:50:34 +08:00
CaIon
68b24da6a6 add epay 2023-08-14 22:16:32 +08:00
JustSong
005b2c2d53 chore: add more context in error message 2023-07-23 09:49:46 +08:00
ckt
b1cb2602dc 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
玩牛牛
ab437eb663 feat: add support for /v1/engines/text-embedding-ada-002/embeddings (#224, close #222) 2023-07-15 12:03:23 +08:00
JustSong
f158d754ef fix: fix the wrong message when channel is deleted 2023-06-29 11:27:34 +08:00
JustSong
1ab01b7eb5 feat: support model remap now 2023-06-27 13:42:45 +08:00
JustSong
74b237544c fix: fix http status code (close #193) 2023-06-23 22:59:44 +08:00
JustSong
02bc73066c feat: do not access database before response return (close #158) 2023-06-21 17:26:26 +08:00
JustSong
cab830b711 fix: cors allow all headers 2023-06-20 22:04:01 +08:00
JustSong
b220e8e863 feat: use cache to avoid database access (#158) 2023-06-20 19:09:49 +08:00
JustSong
bf4f129e51 chore: add x-requested-with header in CORS setting 2023-06-17 15:30:14 +08:00
Miniers
0ce7cf550b feat: add token name to log (#172)
* add token name to log

* chore: update expression

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-17 14:56:03 +08:00
JustSong
1e791392f2 feat: able to set group ratio now (close #62, close #142) 2023-06-11 11:08:16 +08:00
JustSong
e479f43c52 feat: support /v1/moderations now (close #117) 2023-06-11 09:37:36 +08:00
JustSong
a04afb22ea feat: support set proxy for channel OpenAI (close #139) 2023-06-09 18:30:01 +08:00
JustSong
cbf339284c feat: support group now (close #17, close #72, close #85, close #104, close #136)
Co-authored-by: quzard <1191890118@qq.com>
2023-06-07 23:26:00 +08:00
JustSong
19405d138a fix: add no-cache for index.html 2023-05-22 00:54:53 +08:00
JustSong
91e5f3d9e0 feat: support dummy sk- prefix for token (#82) 2023-05-17 17:04:06 +08:00
JustSong
afbf20b5ba fix: fix quota not consuming 2023-05-16 13:29:22 +08:00
JustSong
f43a810e8d feat: automatically disable channel when error occurred (#59) 2023-05-15 17:34:09 +08:00
JustSong
cb5ccbf5d2 fix: fix /v1/models not working (close #66) 2023-05-15 15:33:34 +08:00
JustSong
9985553b3a fix: fix quota not consumed 2023-05-14 20:36:28 +08:00
JustSong
9ed9eaa65f feat: support specific default api version now (#57) 2023-05-13 12:53:57 +08:00
JustSong
d97d50b14c feat: Azure API supported without verification (#48, #57) 2023-05-13 11:36:36 +08:00
JustSong
bcdfb7d0d9 feat: now use token as the unit of quota (close #33) 2023-04-28 16:58:55 +08:00
JustSong
aa18ac4864 refactor: use quota instead of times 2023-04-28 14:57:20 +08:00
JustSong
f820158ee5 fix: check user status when validating token (#23) 2023-04-27 15:05:33 +08:00
JustSong
5a9fb6238b feat: able to manage system vai access token (close #12) 2023-04-26 20:54:39 +08:00
JustSong
d87bae94f5 fix: allow all origins (close #20) 2023-04-26 15:27:33 +08:00
JustSong
56231eea66 fix: prevent common user from specifying channel id (#12) 2023-04-26 14:49:27 +08:00