Laisky.Cai
d379377eca
Merge remote-tracking branch 'origin/upstream/main'
2024-03-18 01:31:21 +00:00
JustSong
08831881f1
feat: increase initial root user quota and support INITIAL_ROOT_TOKEN now ( #1105 )
2024-03-17 19:09:44 +08:00
Laisky.Cai
cef41193d9
Merge remote-tracking branch 'origin/upstream/main'
2024-03-16 07:49:36 +00:00
GAI Group
11af81eb39
feat: add new theme air ( #1167 )
...
* chore: add theme air with new-api main branch v0.2.0.3-alpha.1(first step)
* feat: 完成渠道界面
* chore: 优化渠道界面样式问题
* feat: 完成兑换码界面
* feat: 完成充值(钱包)界面
* chore: 初代air主题将使用default主题的运营设置界面、系统设置界面、其他设置界面
* feat: 完成日志界面
* feat: 完成用户管理界面
* feat: 完成个人设置界面
* feat: 完成令牌界面
* chore: 优化令牌界面逻辑
* feat: 修改版权信息
* chore: make necessary changes
---------
Co-authored-by: Calon <1808837298@qq.com>
Co-authored-by: Apple\Apple <zeraturing@foxmail.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-03-16 15:29:35 +08:00
Laisky.Cai
41afad713e
Merge remote-tracking branch 'origin/upstream/main'
2024-03-15 09:49:49 +00:00
JustSong
79d0cd378a
fix: fix baidu system prompt ( close #1079 )
2024-03-13 22:56:54 +08:00
JustSong
e99150bdb9
fix: make quota int64
2024-03-13 20:00:51 +08:00
Laisky.Cai
72501cb746
Merge remote-tracking branch 'origin/upstream/main'
2024-03-11 09:32:11 +00:00
JustSong
5b50eb94e5
feat: able to send alert message via message pusher ( close #993 )
2024-03-10 19:16:06 +08:00
JustSong
12440874b0
feat: able to disable channel by success rate
2024-03-10 17:57:47 +08:00
JustSong
f05b403ca5
feat: use real system prompt now ( close #1079 )
2024-03-10 14:32:30 +08:00
Laisky.Cai
577ec90736
fix: Initialize transport object, set timeouts, and add IdleTimeout config
...
- Introduced idle connection timeout for HTTP client transport
- Implemented custom timeout for HTTP client when `RelayTimeout` is 0
- Set ImpatientHTTPClient timeout to 5 seconds
- Added new config variable `IdleTimeout` with default value of 30 seconds
- Utilized shared transport object for all HTTP clients in relay/util package
2024-03-08 12:58:05 +00:00
Laisky.Cai
ba9b258a4b
feat: Enhance security and fix bugs in authentication
...
- Update the minimum access token length from 16 to 32
- Prevent spam by introducing policies and detecting user agents
- Add an authorization header to the login response
- Use base64 to decode the session secret and generate a random one if not set
2024-03-05 13:07:07 +00: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