- 16 Apr, 2025 1 commit
-
-
Reason: The original steps 1 and 3 in the redisRateLimitHandler method were not atomic, leading to poor precision under high concurrent requests. For example, with a rate limit set to 60, sending 200 concurrent requests would result in none being blocked, whereas theoretically around 140 should be intercepted. Solution: I chose not to merge steps 1 and 3 into a single Lua script because a single atomic operation involving read, write, and delete operations could suffer from performance issues under high concurrency. Instead, I implemented a token bucket algorithm to optimize this, reducing the atomic operation to just read and write steps while significantly decreasing the memory footprint.
霍雨佳 committed
-
- 14 Apr, 2025 5 commits
-
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
fix: wrong field for Claude (OpenAI Upstream)
Calcium-Ion committed -
CaIon committed
-
- 13 Apr, 2025 1 commit
-
-
neotf committed
-
- 12 Apr, 2025 1 commit
-
-
CaIon committed
-
- 11 Apr, 2025 6 commits
- 10 Apr, 2025 11 commits
-
-
CaIon committed
-
CaIon committed
-
fix(relay): 优化数据流处理
Calcium-Ion committed -
CaIon committed
-
- 移除了 bufio 的无效使用 - 在 StreamScannerHandler 中增加了初始和最大缓冲区大小的常量设置 - 调整 StreamScannerHandler 中缓冲区大小,避免出现token too long报错
quran committed -
fix: .env文件配置DEBUG=true等参数不起作用的fix
Calcium-Ion committed -
feat: add xAI channel
Calcium-Ion committed -
HynoR committed
-
HynoR committed
-
feat: add xai channel feat: add xai channel
HynoR committed -
把constant/env.go里的从Getenv获取的参数,放到env.go的InitEnv函数里获取。以避免.env文件配置参数不起作用的情况
wkxu committed
-
- 09 Apr, 2025 4 commits
-
-
Update: Gemini channel fetch_models
Calcium-Ion committed -
CaIon committed
-
CaIon committed
-
refactor: Update localization keys for API address in English translations and adjust related UI labels
CaIon committed
-
- 08 Apr, 2025 7 commits
-
-
zkp committed
-
CaIon committed
-
fix: save OIDC settings
Calcium-Ion committed -
CaIon committed
-
fix: gemini test MaxTokens
Calcium-Ion committed -
Calcium-Ion committed
-
CaIon committed
-
- 07 Apr, 2025 2 commits
- 06 Apr, 2025 1 commit
-
-
zkp committed
-
- 05 Apr, 2025 1 commit
-
-
Yiffyi Jia committed
-