Commit Graph

47 Commits

Author SHA1 Message Date
JustSong
128c84b338 feat: support channel remain quota query (close #79) 2023-05-21 16:09:54 +08:00
JustSong
08a628a7f8 chore: set initial quota for root user 2023-05-21 10:05:34 +08:00
JustSong
8a7f597048 feat: able to manage user's quota now 2023-05-21 10:01:02 +08:00
JustSong
44b9d7a134 feat: now slave server can sync options with master server (close #88) 2023-05-18 12:48:20 +08:00
JustSong
91e5f3d9e0 feat: support dummy sk- prefix for token (#82) 2023-05-17 17:04:06 +08:00
JustSong
146ab7d299 feat: able to set pre consumed quota now 2023-05-16 13:57:01 +08:00
JustSong
afbf20b5ba fix: fix quota not consuming 2023-05-16 13:29:22 +08:00
JustSong
bcb4862a19 refactor: bind quota to account instead of token (close #64, #31) 2023-05-16 11:26:09 +08:00
JustSong
fa2d80c674 fix: fix option update logic not working properly 2023-05-16 10:04:39 +08:00
JustSong
f43a810e8d feat: automatically disable channel when error occurred (#59) 2023-05-15 17:34:09 +08:00
JustSong
93b00d62a6 feat: able to test all enabled channels (#59) 2023-05-15 12:36:55 +08:00
JustSong
210952bd1e feat: save response time & test time (#59) 2023-05-15 11:35:38 +08:00
JustSong
6eb288260d feat: able to customize system name & logo now 2023-05-14 19:29:02 +08:00
JustSong
d4a976d0e6 fix: fix SMTPFrom not updated in some cases (close #34) 2023-05-13 22:04:36 +08:00
JustSong
80176fdfe8 feat: able to customize home page now (#24) 2023-05-13 21:27:49 +08:00
JustSong
6cb284c8fd feat: able to configure smtp from now (close #34) 2023-05-13 18:33:41 +08:00
JustSong
bc87b023f5 feat: support batch creation of channels (close #58) 2023-05-13 17:08:13 +08:00
JustSong
9ed9eaa65f feat: support specific default api version now (#57) 2023-05-13 12:53:57 +08:00
JustSong
17f1714256 fix: handle errors when update option map 2023-05-13 10:30:55 +08:00
JustSong
d11134d98f feat: now supports custom smtp port 2023-05-12 11:44:38 +08:00
JustSong
049a6def02 feat: able to configure ratio for more models now (close #53) 2023-05-11 20:59:35 +08:00
JustSong
929f87d11a fix: delete a token with a negative quota will now update the account's quota correctly (close #51) 2023-05-11 20:05:49 +08:00
JustSong
7bd4c0e490 fix: return quota to user when delete token (close #37) 2023-05-04 10:20:39 +08:00
JustSong
033e832cae feat: able to configure ratio for different models (close #26) 2023-04-28 19:16:37 +08:00
JustSong
0760dcf6cc feat: support configuring ratio when estimating token number in stream mode 2023-04-28 17:25:05 +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
79dc851aa1 feat: able to set top up link now 2023-04-27 16:32:21 +08:00
JustSong
f820158ee5 fix: check user status when validating token (#23) 2023-04-27 15:05:33 +08:00
JustSong
4bcc5f54f2 fix: fix MySQL syntax error (#54) 2023-04-27 11:10:10 +08:00
JustSong
a751f30316 fix: specify type for token (close #23) 2023-04-27 09:32:20 +08:00
JustSong
9c529f9674 feat: able to set initial quota for new user (close #22) 2023-04-26 21:40:56 +08:00
JustSong
5a9fb6238b feat: able to manage system vai access token (close #12) 2023-04-26 20:54:39 +08:00
JustSong
be2b3f3fc6 feat: now user can top up via redemption code (close #9) 2023-04-26 17:02:26 +08:00
JustSong
56231eea66 fix: prevent common user from specifying channel id (#12) 2023-04-26 14:49:27 +08:00
JustSong
b612efe349 fix: only reduce remain times when request /v1/chat/completions (close #15)
BREAKING CHANGE: now remain_times is -1 doesn't mean unlimited times anymore!
2023-04-26 10:45:34 +08:00
JustSong
5e20246e65 fix: update error message to make it more clear (#13) 2023-04-25 15:13:25 +08:00
JustSong
db95445a86 feat: able to set the token's expiration time and number of uses 2023-04-24 20:52:40 +08:00
JustSong
32755d875a Support custom channel now 2023-04-23 20:35:49 +08:00
JustSong
12aa6c352b Relay done but not working 2023-04-23 18:24:11 +08:00
JustSong
28e8e89e28 Able to manage channels now 2023-04-23 15:42:23 +08:00
JustSong
9ca6adf4a1 Able to manage token now 2023-04-23 12:43:10 +08:00
JustSong
466cdbf1af Token API done without verification 2023-04-23 11:31:00 +08:00
JustSong
bc88176dc5 Channel API done without verification 2023-04-22 22:02:59 +08:00
JustSong
074df0f131 Remove useless page 2023-04-22 21:41:16 +08:00
JustSong
483bd64d8f Rename to One API 2023-04-22 21:14:09 +08:00
JustSong
4cbef0780e Initial commit 2023-04-22 20:39:27 +08:00