Xyfacai
389ddfa8a9
Merge pull request #2590 from xyfacai/fix/max-body-limit
...
fix: 设置默认max req body 为128MB
2026-01-06 21:47:12 +08:00
Xyfacai
283271064c
Merge pull request #2588 from PowerfulBart/fix/auto-group-task-logging
...
fix(task): 修复使用 auto 分组时 Task Relay 不记录日志和不扣费的问题
2026-01-06 11:14:49 +08:00
郑伯涛
d2a91effef
fix(task): 修复使用 auto 分组时 Task Relay 不记录日志和不扣费的问题
...
问题描述:
- 使用 auto 分组的令牌调用 /v1/videos 等 Task 接口时,虽然任务能成功创建,
但使用日志不显示记录,且不会扣费
根本原因:
- Distribute 中间件在选择渠道后,会将实际选中的分组存储在 ContextKeyAutoGroup 中
- 但 RelayTaskSubmit 函数没有从 context 中读取这个值来更新 info.UsingGroup
- 导致 info.UsingGroup 始终是 "auto" 而不是实际选中的分组(如 "sora2逆")
- 当 auto 分组的倍率配置为 0 时,quota 计算结果为 0
- 日志记录条件 "if quota != 0" 不满足,导致日志不记录、不扣费
修复方案:
- 在 RelayTaskSubmit 函数中计算分组倍率之前,添加从 ContextKeyAutoGroup
获取实际分组的逻辑
- 使用安全的类型断言,避免潜在的 panic 风险
影响范围:
- 仅影响 Task Relay 流程(/v1/videos, /suno, /kling 等接口)
- 不影响使用具体分组令牌的调用
- 不影响其他 Relay 类型(chat/completions 等已有类似处理逻辑)
2026-01-06 00:16:50 +08:00
Seefs
e71be75067
Merge pull request #2587 from xiangsx/main
2026-01-05 23:36:16 +08:00
xiangsx
3c21652e28
feat: add regex pattern to mask API keys in sensitive information
2026-01-05 22:44:11 +08:00
CaIon
04ff3df583
fix(gin): update request body size check to allow zero limit
2026-01-05 18:55:24 +08:00
Seefs
3b05ac92e9
Merge pull request #2581 from seefs001/fix/batch-add-key-deduplicate
2026-01-05 18:52:18 +08:00
Seefs
fa5c585e4e
Merge pull request #2582 from seefs001/fix/tips
...
fix: add tips for model management and channel testing
2026-01-05 18:47:02 +08:00
Calcium-Ion
cf2eb6da08
Merge pull request #2580 from seefs001/fix/aws-proxy-timeout
...
fix: fix the proxyURL is empty, not using the default HTTP client configuration && the AWS calling side did not apply the relay timeout.
2026-01-05 18:32:25 +08:00
Seefs
99e841cb01
fix: batch add key backend deduplication
2026-01-05 18:09:02 +08:00
Seefs
0ef2804757
fix: fix the proxyURL is empty, not using the default HTTP client configuration && the AWS calling side did not apply the relay timeout.
2026-01-05 17:56:24 +08:00
Calcium-Ion
43f5433e6a
Merge pull request #2578 from xyfacai/fix/gemini-mimetype
...
fix: 修复 gemini 文件类型不支持 image/jpg
2026-01-04 22:19:16 +08:00
Xyfacai
eeccb2146f
fix: 修复 gemini 文件类型不支持 image/jpg
2026-01-04 22:09:03 +08:00
Seefs
be2fdceaec
Merge pull request #2550 from shikaiwei1/patch-2
2026-01-04 18:11:46 +08:00
CaIon
6ba75a02b7
feat: add plans directory to .gitignore
2026-01-04 16:20:58 +08:00
Seefs
56c1994a08
Merge pull request #2568 from seefs001/feature/channel_override_trim_prefix
2026-01-03 12:38:32 +08:00
Seefs
be567ef7c9
fix: fix model deployment style issues, lint problems, and i18n gaps. ( #2556 )
...
* fix: fix model deployment style issues, lint problems, and i18n gaps.
* fix: adjust the key not to be displayed on the frontend, tested via the backend.
* fix: adjust the sidebar configuration logic to use the default configuration items if they are not defined.
2026-01-03 12:37:50 +08:00
Calcium-Ion
1c95a9febc
Merge pull request #2558 from seefs001/fix/gemini-tool-call
...
fix: gemini request -> openai tool call
2026-01-03 12:37:28 +08:00
Calcium-Ion
93527862a0
Merge pull request #2571 from seefs001/feature/check-in-security-check
...
feat: check-in feature integrates Turnstile security check
2026-01-03 12:36:39 +08:00
Seefs
44f9d9040b
feat: add support for Doubao /v1/responses ( #2567 )
...
* feat: add support for Doubao /v1/responses
2026-01-03 12:35:35 +08:00
Seefs
a7e6a91247
Merge pull request #2570 from feitianbubu/pr/43f64c6508515ffaec308ac9c1cf2afa2de98c3d
2026-01-03 12:16:57 +08:00
Seefs
23ec7bcad3
Merge pull request #2447 from a4399518s/main
2026-01-03 12:15:28 +08:00
Seefs
b32cecb46c
feat: check-in feature integrates Turnstile security check
2026-01-03 11:08:26 +08:00
feitianbubu
5334e6aec2
fix: CrossGroupRetry default false
...
移除gorm:"default:false",避免每次 AutoMigrate时都执行ALTER TABLE `tokens` MODIFY COLUMN `cross_group_retry` boolean DEFAULT false
且bool默认false不影响原有功能
2026-01-03 10:43:33 +08:00
Seefs
552e51c15a
feat: add parameter coverage for the operations: copy, trim_prefix, trim_suffix, ensure_prefix, ensure_suffix, trim_space, to_lower, to_upper, replace, and regex_replace
2026-01-03 10:27:16 +08:00
Seefs
ea60d305bb
Merge pull request #2393 from prnake/fix-claude-haiku
2026-01-03 09:36:42 +08:00
Seefs
b2e52260e1
Merge pull request #2532 from feitianbubu/pr/620211e02bd55545f0fa4568f3d55c3b4d7f3305
2026-01-03 09:36:17 +08:00
Seefs
8e646fe937
Merge pull request #2547 from wwalt1a/feat/support-proxy-env-vars
2026-01-03 09:35:51 +08:00
Seefs
bd2f7750db
Merge pull request #2425 from atopos31/main
2026-01-03 09:32:50 +08:00
Seefs
92c6794b63
Merge pull request #2554 from zpc7/bugfix/remove-duplicate-condition
2026-01-03 09:31:22 +08:00
Seefs
ce44333acd
Merge pull request #2566 from RedwindA/fix/checkin-frontend-collapse
2026-01-03 09:26:49 +08:00
RedwindA
6e8242b8f4
fix: remove a duplicate key in i18n
2026-01-03 00:55:08 +08:00
RedwindA
5bc2d9f414
fix(checkin): prevent visual flicker when loading check-in component
...
- Add initialLoaded state to track first data load completion
- Set isCollapsed to null initially, determined after data loads
- Show loading state on button and description text before data arrives
- Remove auto-collapse effect that caused visual flicker
- Add i18n translations for loading states (en/fr/ja/ru/vi/zh)
Fixes issue where component would collapse/expand after data loads,
causing visual flicker when navigating to personal settings page.
2026-01-03 00:43:52 +08:00
Calcium-Ion
54cb496b09
Merge pull request #2565 from QuantumNous/feat/check-in
...
feat(checkin): add check-in functionality
2026-01-02 23:17:10 +08:00
CaIon
d340112ce2
feat(checkin): add check-in functionality with status retrieval and user quota rewards
2026-01-02 23:00:33 +08:00
CaIon
a3c1bc6350
fix: 修复 timestamp2string1 跨年显示问题,仅在数据跨年时显示年份
2026-01-01 15:42:15 +08:00
CaIon
87a75b0565
feat(ratio): add functions to check for audio ratios and clean up unused code
2025-12-31 21:29:10 +08:00
CaIon
7bbb7f8114
feat(model): add audio ratios for new TTS models and adjust default values
2025-12-31 21:22:33 +08:00
CaIon
75a6a0ba2b
feat(init): increase maximum file download size to 64MB
2025-12-31 21:15:37 +08:00
Seefs
336e7a5ba4
fix: gemini request -> openai tool call
2025-12-31 18:09:21 +08:00
PCCCCCCC
5da36c816c
remove duplicate condition in TaskLogsColumnDefs
2025-12-31 09:38:23 +08:00
CaIon
300459c8a8
fix(TaskLogs): use correct video URL for modal preview
2025-12-31 00:44:12 +08:00
CaIon
62020d00a4
feat(adaptor): update resolution handling for wan2.6 model
2025-12-31 00:44:06 +08:00
CaIon
6d0e316ee6
refactor(image): remove unnecessary logging in oaiImage2Ali function
2025-12-31 00:23:19 +08:00
Calcium-Ion
edca79297b
Merge pull request #2551 from feitianbubu/pr/829cb06b5d689ecbcc05bb3ef49dbf1aec427c35
...
feat: flush response writer after copying body
2025-12-30 18:09:33 +08:00
feitianbubu
b9c3ced076
feat: flush response writer after copying body
2025-12-30 17:52:57 +08:00
John Chen
6a2da31946
fix: 修复智普、Moonshot渠道在stream=true时无法拿到cachePrompt的统计数据。
...
根本原因:
1. 在OaiStreamHandler流式处理函数中,调用applyUsagePostProcessing(info, usage, nil)时传入的responseBody为nil,导致无法从响应体中提取缓存tokens。
2. 两个渠道的cached_tokens位置不同:
- 智普:标准位置 usage.prompt_tokens_details.cached_tokens
- Moonshot:非标准位置 choices[].usage.cached_tokens
处理方案:
1. 传递body信息到applyUsagePostProcessing中
2. 拆分智普和Moonshot的解析,并为Moonshot单独写一个解析方法。
2025-12-30 17:38:32 +08:00
Hackerxiao
815bc61c67
Merge branch 'QuantumNous:main' into main
2025-12-30 11:44:15 +08:00
wwalt1a
e683a3ae00
feat: support HTTP_PROXY environment variable for default HTTP client
...
- Add Proxy: http.ProxyFromEnvironment to default transport
- Allow users to set global proxy via Docker environment variables
- Per-channel proxy settings still override global proxy
- Fully backward compatible
2025-12-30 03:55:06 +08:00
CaIon
b5a0c822d2
feat(adaptor): 新适配百炼多种图片生成模型
...
- wan2.6系列生图与编辑,适配多图生成计费
- wan2.5系列生图与编辑
- z-image-turbo生图,适配prompt_extend计费
2025-12-29 23:00:17 +08:00