7e3e9b1a96
refactor: Reducing the lock duration to the minimum necessary time in CacheGetRandomSatisfiedChannel function
CaIon2025-04-29 15:57:21 +08:00
5b81e88e41
feat: support thinking suffix for vertex gemini channel
tbphp2025-04-29 13:30:03 +08:00
8b9ba91184
fix: update audio ratio logic for model names in GetAudioRatio function
CaIon2025-04-28 20:55:40 +08:00
d402f5a5d9
Merge pull request #1008 from JoeyLearnsToCode/feat-search-channel-by-url
IcedTangerine2025-04-28 13:15:49 +08:00
c1a0ca0bc7
refactor: update claude media source handling
CaIon2025-04-24 15:59:43 +08:00
3169bfe362
refactor: update ClaudeMessageSource struct to include optional Url field and adjust media source handling in relay-claude #993CaIon2025-04-24 00:39:09 +08:00
1989ae95c1
refactor: streamline value assignment in SettingGeminiModel
CaIon2025-04-18 20:08:26 +08:00
d378543819
feat: add gemini thinking suffix support #981CaIon2025-04-18 19:36:18 +08:00
8ead0864b5
refactor: remove reasoning field from GeneralOpenAIRequest struct
CaIon2025-04-17 17:11:42 +08:00
80e6b9e04e
feat: add reasoning field to GeneralOpenAIReques
CaIon2025-04-17 17:09:46 +08:00
b364e9e3b1
refactor: simplify model prefix checks and update message role for o-series models
CaIon2025-04-17 16:50:52 +08:00
45e8e04d56🐛fix: Fix the issue where new whitelist email domain names cannot be added in the system settings
Apple\Apple2025-04-16 17:11:59 +08:00
e121e77265
Refactor: Optimize the token bucket algorithm, specifically the New method in common/imiterlimiter.go. Solution: Remove Redis ping. When printing exceptions, use SysLog to print and add additional logging information.
霍雨佳2025-04-16 16:36:07 +08:00
c20fbec17b
Merge pull request #927 from QuentinHsu/refactor-system-setting
Apple\Apple2025-04-16 16:27:11 +08:00
5aa2076e18
Refactor: Optimize the request rate limiting for ModelRequestRateLimitCount. 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.
霍雨佳2025-04-16 10:33:43 +08:00
32db85607e
fix: Update model ratios for gemini-2.5-pro
CaIon2025-04-10 00:09:11 +08:00
ed855e78f7
refactor: Remove duplicate model settings initialization in main function
CaIon2025-04-10 00:07:34 +08:00
b4889878d0
refactor: Update localization keys for API address in English translations and adjust related UI labels
CaIon2025-04-09 22:22:19 +08:00
7566ae9b3e
Add support for grok-2-image. Currently, grok-2-image doesn't support the size, quality, or style parameters. Set 'size'='empty' to use grok-2-image
datehoer2025-04-09 15:05:00 +08:00