JustSong
1aa374ccfb
refactor: use adaptor to do relay & test
2024-02-18 00:15:31 +08:00
Laisky.Cai
d548a01c59
feat: Handle errors, validate model names, and calculate quota usage ( #978 )
...
- Improved error handling in various modules for better stability and responsiveness.
- Optimized code in several files for improved efficiency and readability.
- Enhanced user experience by providing more detailed error responses in the controller.
- Strengthened security by ignoring sensitive files in `.gitignore`.
2024-02-12 21:35:40 +08:00
JustSong
2cd1a78203
chore: update module name
2024-01-28 19:38:58 +08:00
JustSong
2d760d4a01
refactor: refactor relay part ( #957 )
...
* refactor: refactor relay part
* refactor: refactor config part
2024-01-21 23:21:42 +08:00
JustSong
eed9f5fdf0
refactor: refactor relay part ( #935 )
2024-01-14 19:21:03 +08:00
JustSong
959bcdef88
chore: update error code
2023-09-17 11:30:20 +08:00
ckt
dccd66b852
feat: add access_until field for subscription api ( #295 )
...
* 支持从计费渠道端点返回日期
* fix: fix wrong git base
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-23 13:49:09 +08:00
JustSong
4139a7036f
chore: make subscription api compatible with official api
2023-07-15 23:01:54 +08:00
JustSong
4a6a7f4635
chore: update the number that representing the unlimited quota
2023-06-25 10:52:46 +08:00
JustSong
6b1a24d650
fix: check if token is nil before using it
2023-06-25 10:40:54 +08:00
JustSong
94ba3dd024
chore: billing api now will return a large number if unlimited quota is set
2023-06-25 10:39:22 +08:00
JustSong
1ca1aa0cdc
fix: fix usage is not correct
2023-06-25 09:36:39 +08:00
JustSong
7edc2b5376
feat: able to display token billing stat via billing api ( close #186 )
2023-06-23 20:14:53 +08:00
JustSong
ced9f060c7
fix: fix used amount not correct
2023-06-20 21:05:07 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
d4794fc051
feat: return user's quota with billing api ( close #92 )
2023-05-22 17:10:31 +08:00