IcedTangerine
ea10806cf9
Merge pull request #950 from datehoer/main
...
fix: update getAndValidImageRequest function in relay/relay-image.go to support grok-2-image model
2025-04-26 15:34:15 +08:00
IcedTangerine
1a9ebb54b2
Merge pull request #843 from IllTamer/pr
...
fix: the pricing available popover display anyway
2025-04-25 18:27:45 +08:00
IcedTangerine
6de3857150
Merge branch 'main' into pr
2025-04-25 18:27:11 +08:00
han shi
32cd890b6e
feat: 增加sendcloud邮件服务器的支持 ( #947 )
...
* 增加sendcloud邮件服务器的支持
* 调整代码结构
* Used slince.Contains function
---------
Co-authored-by: shih <shih@knownsec.com >
2025-04-25 18:17:46 +08:00
creamlike1024
f968d77365
fix: remove apikey from test channel log, close #1000
2025-04-25 17:08:26 +08:00
CaIon
dc22f7d32f
refactor: update deepseek beta api
2025-04-25 16:26:16 +08:00
creamlike1024
c2b33e3b23
fix: GetMaxUserId use Unscope, close #987
2025-04-25 16:13:11 +08:00
IcedTangerine
db3326deae
Merge pull request #975 from asjfoajs/qn-main
...
[#969 ] Refactor: Optimize the request rate limiting for ModelRequestRateLimi…
2025-04-25 11:59:05 +08:00
CaIon
25ae077ac9
refactor: update claude media source handling
2025-04-24 15:59:43 +08:00
CaIon
aaa41a8074
refactor: update ClaudeMessageSource struct to include optional Url field and adjust media source handling in relay-claude #993
2025-04-24 00:39:09 +08:00
CaIon
26f5b954c5
f*** gemini
2025-04-19 18:07:51 +08:00
CaIon
79c6dd08c9
refactor: enhance SystemSetting submission logic and handle empty WorkerUrl
2025-04-19 00:20:25 +08:00
CaIon
17e8a3432a
refactor: update GeminiThinkingConfig initialization
2025-04-18 23:13:28 +08:00
CaIon
790af65b2c
refactor: remove unsupported 'exclusiveMinimum' field from cleanFunctionParameters
2025-04-18 22:40:05 +08:00
CaIon
6522147183
refactor: remove unsupported root-level fields from cleanFunctionParameters
2025-04-18 21:38:12 +08:00
CaIon
0755ac9991
refactor: streamline value assignment in SettingGeminiModel
2025-04-18 20:08:26 +08:00
CaIon
4c4dc6e8b4
feat: add gemini thinking suffix support #981
2025-04-18 19:36:18 +08:00
CaIon
1eebdc4773
refactor: remove reasoning field from GeneralOpenAIRequest struct
2025-04-17 17:11:42 +08:00
CaIon
9b6c898675
feat: add reasoning field to GeneralOpenAIReques
2025-04-17 17:09:46 +08:00
CaIon
ee4f27d01b
refactor: simplify model prefix checks and update message role for o-series models
2025-04-17 16:50:52 +08:00
Apple\Apple
995c19a997
🐛 fix: Fix the issue where new whitelist email domain names cannot be added in the system settings
2025-04-16 17:11:59 +08:00
霍雨佳
e385e347ea
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
Apple\Apple
71d0d759da
Merge pull request #927 from QuentinHsu/refactor-system-setting
...
# Conflicts:
# web/src/App.js
# web/src/components/ModelSetting.js
# web/src/components/PersonalSetting.js
# web/src/components/SystemSetting.js
# web/src/pages/Channel/EditChannel.js
2025-04-16 16:27:11 +08:00
霍雨佳
eb75ff232f
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
CaIon
272662089d
refactor: remove unused mutex from RelayInfo struct
2025-04-15 23:06:32 +08:00
CaIon
214ca4db56
fix: claude parallel function calling
2025-04-15 04:52:33 +08:00
CaIon
473e8e0eaf
feat: support gemini output text and inline images. ( close #866 )
2025-04-15 02:32:51 +08:00
CaIon
99efc1fbb6
fix: try to fix claude to openai format mcp #966
2025-04-15 01:16:06 +08:00
Calcium-Ion
d283f6b35f
Merge pull request #967 from neotf/fix-01
...
fix: wrong field for Claude (OpenAI Upstream)
2025-04-15 00:05:41 +08:00
CaIon
2f3acd9d22
feat: 添加流模式下的SSE保活机制 #945
2025-04-14 19:40:23 +08:00
neotf
eee6dee599
fix: wrong systemStr for Claude (OpenAI Upstream)
2025-04-14 01:09:02 +08:00
CaIon
dcf7878772
fix: update model name handling in UI and localization
2025-04-12 17:44:29 +08:00
CaIon
ef8ae4db80
fix: xAI usage
2025-04-11 23:31:32 +08:00
CaIon
90576d0261
feat: enhance Claude to OpenAI request conversion with additional relay info support
2025-04-11 19:13:38 +08:00
CaIon
4b3e30e669
feat: 完善openai转claude支持
2025-04-11 18:28:50 +08:00
CaIon
75570af967
chore: update .gitignore and docker-compose.yml to include tiktoken_cache directory
2025-04-11 16:24:27 +08:00
CaIon
cca9c0479f
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
CaIon
8a2332074f
refactor: move maxFileSize variable inside GetFileBase64FromUrl function
2025-04-11 15:53:23 +08:00
CaIon
2ec4565601
feat: implement parameter cleaning for Gemini functions
2025-04-10 22:35:03 +08:00
CaIon
a4fb33957f
feat: support zhipu_4v embeddings path
2025-04-10 20:53:51 +08:00
Calcium-Ion
909c5eb276
Merge pull request #959 from Praying/main
...
fix(relay): 优化数据流处理
2025-04-10 17:21:55 +08:00
CaIon
8723e3f239
feat: add xAI handling and response processing
2025-04-10 17:20:59 +08:00
quran
9328b907f2
fix(relay): 优化数据流处理
...
- 移除了 bufio 的无效使用
- 在 StreamScannerHandler 中增加了初始和最大缓冲区大小的常量设置
- 调整 StreamScannerHandler 中缓冲区大小,避免出现token too long报错
2025-04-10 16:56:16 +08:00
Calcium-Ion
8efa12b941
Merge pull request #953 from wkxu/main
...
fix: .env文件配置DEBUG=true等参数不起作用的fix
2025-04-10 16:14:11 +08:00
Calcium-Ion
7b997b3a2c
Merge pull request #956 from HynoR/feat/xai
...
feat: add xAI channel
2025-04-10 16:13:48 +08:00
HynoR
700c05b826
feat: update adaptor methods and add new image model
2025-04-10 15:08:12 +08:00
HynoR
c5103237b0
feat: add xai grok-3-mini reasoning effort
2025-04-10 13:31:43 +08:00
HynoR
f500eb17a8
feat: add xai channel
...
feat: add xai channel
feat: add xai channel
2025-04-10 13:04:43 +08:00
wkxu
86f6bb7abe
refactor: 把common/instants.go里的从Getenv获取的参数,放到init.go的LoadEnv函数里获取
...
把constant/env.go里的从Getenv获取的参数,放到env.go的InitEnv函数里获取。以避免.env文件配置参数不起作用的情况
2025-04-10 09:02:19 +08:00
Calcium-Ion
c4c1099ae5
Merge pull request #944 from lamcodes/main
...
Update: Gemini channel fetch_models
2025-04-10 00:09:54 +08:00