- 12 Apr, 2026 2 commits
-
-
- Create model/errors.go to centralize all sentinel errors - ValidateAccessToken now returns error to distinguish DB failures - ValidateUserToken uses unified ErrTokenInvalid for all auth failures (expired/exhausted/disabled/not-found) to prevent token enumeration - authHelper and TokenAuthReadOnly use i18n messages instead of hardcoded Chinese strings - All err.Error() removed from user-facing responses; DB errors logged server-side and return generic "contact admin" message (HTTP 500) - Migrate ErrRedeemFailed, ErrTwoFANotEnabled to model/errors.go
CaIon committed -
ValidateAndFill now checks the DB query result and returns sentinel errors (ErrDatabase, ErrInvalidCredentials, ErrUserEmptyCredentials) instead of hardcoded Chinese strings. The controller maps each sentinel to the appropriate i18n message, so users see "please contact admin" on DB errors instead of a misleading "wrong password" message. Non-DB errors still return a unified vague response to avoid leaking user existence.
CaIon committed
-
- 11 Apr, 2026 1 commit
-
-
- Backend: differentiate error messages for admin vs regular users in price.go - Backend: include error_code in channel test response for structured error handling - Frontend: render model_price_error as a styled card in Playground with admin nav button - Frontend: show inline error details and settings link in channel test modal - Frontend: parse error codes from both SSE and non-streaming API responses - i18n: remove redundant "Settings" suffix from setting tab translations (en/fr/ru/ja/vi) - i18n: update "Group & Model Pricing" translations across all locales
CaIon committed
-
- 09 Apr, 2026 9 commits
-
-
- Refactor token, redemption, and user quota inputs to prioritize monetary amount entry, with raw quota input collapsed by default - Add atomic quota adjustment modal for users with add/subtract/override modes, bypassing batch update queue for immediate DB consistency - Make user quota fields readonly in edit form; all modifications go through the dedicated adjust-quota modal via POST /api/user/manage - Add DecreaseUserQuota `db` parameter for direct DB writes, matching IncreaseUserQuota behavior - Support negative quota display in amount conversion helpers - Add i18n keys for all new UI strings across all locales
CaIon committed -
ci: refine PR template and add PR submission checks
Seefs committed -
Seefs committed
-
feat: fill in some custom fields for vllm-omini
Calcium-Ion committed -
Calcium-Ion committed
-
Seefs committed
-
NyaMisty committed
-
Seefs committed
-
Seefs committed
-
- 08 Apr, 2026 18 commits
-
-
Rewrite GroupGroupRatioRules and GroupSpecialUsableRules to group rules by user group in collapsible sections instead of a flat table. Default collapsed to reduce visual clutter when many rules exist. Fix i18n translations for ja, zh-TW with proper native text; add missing keys.
CaIon committed -
forsakenyang committed
-
* feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题 * fix: 修复通过 SSL 发送邮件时绕过 AUTH LOGIN 的问题 * fix: remove redundant branch, delete test file, add i18n translations - Remove redundant else-if branch in SendEmail since auth is already computed via getSMTPAuth() - Delete option_smtp_auth_test.go as requested - Add i18n translations for '强制使用 AUTH LOGIN' checkbox
星野梦月 committed -
Closes #4058
CaIon committed -
CaIon committed
-
fix: 修复 失败后不重试 配置项写到内存被覆盖
Calcium-Ion committed -
- Add GET /api/data/users endpoint for user-grouped quota data (admin only) - Add user consumption ranking (horizontal bar, top 10) and user consumption trend (area chart) tabs visible only to admin users - Fix mislabeled "消耗趋势" tab to "调用趋势" (shows call counts, not quota) - Add processUserData helper for user ranking and trend data extraction - Add i18n keys for new tabs across all 7 locales
CaIon committed -
Seedance support duration
Calcium-Ion committed -
Seefs committed
-
chore: 添加 启用错误日志记录到env配置中
Calcium-Ion committed -
Merge pull request #4136 from QuantumNous/dependabot/go_modules/github.com/aws/aws-sdk-go-v2/service/bedrockruntime-1.50.4 chore(deps): bump github.com/aws/aws-sdk-go-v2/service/bedrockruntime from 1.50.0 to 1.50.4
Calcium-Ion committed -
fix(pricing): add filtering for pricing based on usable groups
Calcium-Ion committed -
fix: Claude 流式断流时不再整份覆盖 usage,保留 cache 计费字段
Calcium-Ion committed -
Seefs committed
-
feat: add ErrorBoundary to prevent full-page crashes
Seefs committed -
Seefs committed
-
feat: add IncludeModelName option to channel affinity rules
Seefs committed -
Bumps [github.com/aws/aws-sdk-go-v2/service/bedrockruntime](https://github.com/aws/aws-sdk-go-v2) from 1.50.0 to 1.50.4. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.50.0...service/ssm/v1.50.4) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/bedrockruntime dependency-version: 1.50.4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] committed
-
- 07 Apr, 2026 6 commits
-
-
refactor(settings): update RatioSetting component to use ModelPricingCombined and adjust tab structure - Replaced ModelRatioSettings with ModelPricingCombined in the RatioSetting component. - Updated tab structure to prioritize pricing settings over model settings. - Removed unused imports for ModelRatioSettings and ModelSettingsVisualEditor.
CaIon committed -
borx committed
-
Clansty committed
-
message_start 阶段可能给 CompletionTokens 非零占位值, 只检查 == 0 不够,加上 !Done && fallback > current 条件。
zuiho committed -
HandleStreamFinalResponse 在 !Done 时调用 ResponseText2Usage 整份覆盖 claudeInfo.Usage,导致 message_start 已获取的 CacheReadInputTokens、 CacheCreationInputTokens 等字段丢失,prompt 退化为占位值 1。 修复: - 只补缺失的 CompletionTokens/PromptTokens,保留已有 cache 数据 - PromptTokens 兜底改用 info.GetEstimatePromptTokens()(与其他渠道对齐) Fixes #4127
zuiho committed -
bbbugg committed
-
- 06 Apr, 2026 4 commits
-
-
irongit committed
-
feat(token): add batch API for fetching token keys
Calcium-Ion committed -
Add new endpoint POST /api/token/batch/keys to fetch multiple token keys in a single request, improving performance when exporting or copying multiple tokens. - Backend: Add GetTokenKeysBatch controller and GetTokenKeysByIds model - Backend: Add route with CriticalRateLimit and DisableCache middleware - Frontend: Add fetchTokenKeysBatch helper function - Frontend: Update useTokensData to use batch API for token export
RedwindA committed -
feat(playground): enhance max_tokens handling and input sanitization
Calcium-Ion committed
-