- 09 Apr, 2026 1 commit
-
-
Pre-fill BillingRequestInput from dto.Request before ModelPriceHelper, so tiered_expr billing resolves param() from the structured request instead of reading HTTP body (which is empty in channel-test context). - attachTestBillingRequestInput: marshal dto.Request → RequestInput - ResolveIncomingBillingExprRequestInput: early-return when pre-filled - settleTestQuota / buildTestLogOther: align test settlement & logging with production TryTieredSettle / InjectTieredBillingInfo paths
yyhhyyyyyy committed
-
- 01 Apr, 2026 7 commits
-
-
Resolve 4 conflicts: - relay/compatible_handler.go: accept main's refactor (postConsumeQuota -> service.PostTextConsumeQuota) - service/quota.go: accept main's PostClaudeConsumeQuota deletion, keep nightly's tiered billing in PostWssConsumeQuota and PostAudioConsumeQuota - web/src/i18n/locales/{en,zh-CN}.json: merge both sets of translation keys Post-merge integration: - Add tiered billing (TryTieredSettle, InjectTieredBillingInfo) to PostTextConsumeQuota - Update tool pricing calls to use nightly's generic GetToolPriceForModel/GetToolPrice APICaIon committed -
Added functionality to save and restore the state of advanced settings in the EditChannelModal using local storage. This enhancement allows users to maintain their preferences when editing channels, improving the overall user experience.
CaIon committed -
支持wan2.7生图-wan2.7-image
Calcium-Ion committed -
fix: prevent double-counting of image count n in billing
Calcium-Ion committed -
feitianbubu committed
-
feitianbubu committed
-
chore(deps-dev): bump picomatch from 4.0.3 to 4.0.4 in /electron
Calcium-Ion committed
-
- 31 Mar, 2026 13 commits
-
-
The previous commit commented out AddOtherRatio("n") in the Ali adaptor to fix double-counting but this could cause billing evasion when n is specified via extra["parameters"] instead of request.N. Root cause: ImagePriceRatio in GetTokenCountMeta() already included n, AND channel adaptors added OtherRatio("n"), resulting in n² billing. Proper fix: - Remove n from ImagePriceRatio (keep sizeRatio * qualityRatio only) - In ImageHelper, add default OtherRatio("n") when adaptor hasn't set one; set fallback tokens to 1 (base unit) - Restore Ali adaptor's AddOtherRatio("n") — it uses actual upstream parameters/response count, preventing billing evasionCaIon committed -
Added checks to ensure clipboard functionality is available before attempting to read from it. Improved error handling during clipboard read operations to prevent unhandled exceptions.
CaIon committed -
When copying a token, users can now choose "Copy Connection String" which encodes both the API key and server URL as a JSON clipboard payload (type: newapi_channel_conn). When opening the channel creation form, the clipboard is auto-detected and a banner offers to fill key + base_url, eliminating repeated tab-switching when connecting to another new-api instance.
CaIon committed -
CaIon committed
-
docs(zh-TW): fix missing content and add partner logo
Calcium-Ion committed -
fix(dashboard): 修复消耗分布图表悬浮时滚动条闪烁
Calcium-Ion committed -
- Switch /api/oauth/email/bind and /api/oauth/wechat/bind from GET to POST with JSON body for better REST semantics - Normalize password reset endpoint to return consistent responses - Apply url.QueryEscape to WeChat code parameter for robustness
CaIon committed -
- Refactor Footer component to use a semantic <footer> element for better accessibility. - Update CSS to include a new class for the custom footer, allowing for relative positioning. - Adjust layout to improve responsiveness and visual alignment of footer content.
CaIon committed -
- Add ValidateURLWithFetchSetting check before fetching MJ image URLs in RelayMidjourneyImage (unauthenticated endpoint) - Add ValidateURLWithFetchSetting check before fetching video URLs in VideoProxy (upstream-controlled URL) - Enable ApplyIPFilterForDomain by default to prevent DNS rebinding bypass of SSRF protection - Elevate FetchModels endpoint from AdminAuth to RootAuth - Update frontend: mark domain IP filtering as recommended, update description and i18n translations (zh-CN/zh-TW/en/fr/ja/ru/vi)
CaIon committed -
Comment out code that modifies price data based on image count. 测试发现,如果是接入阿里百炼平台的qwen-image-2.0系列模型,这边计费的时候会出现 0.2*n*倍率*n的情况,最前面的0.2*n会直接显示为模型价格。 例如: 日志详情 模型价格 $0.600000,专属倍率 0.3 其他详情 大小 1080*1920, 品质 standard, 生成数量 3, 其他倍率 n: 3.000000 计费过程 模型价格:$0.600000 * 专属倍率:0.3 = $0.180000
刘泓宾 committed -
- Add StreamStatus type (relay/common) to track stream end reason (done/timeout/client_gone/scanner_error/eof/panic/ping_fail) and accumulate soft errors during streaming via sync.Once + sync.Mutex. - Add StreamResult (relay/helper) as the callback interface: adapters call sr.Error() for soft errors, sr.Stop() for fatal, sr.Done() for normal completion. No early-return problem — multiple errors per chunk are naturally supported. - Refactor StreamScannerHandler callback from func(string) bool to func(string, *StreamResult). All 9 channel adapters updated. - Write stream_status into log other JSON field (admin-only) with status ok/error, end_reason, error_count, and error messages. - Frontend: display stream status in log detail expansion for admins.
CaIon committed -
CaIon committed
-
chore(deps): bump golang.org/x/image from 0.23.0 to 0.38.0
Seefs committed
-
- 30 Mar, 2026 1 commit
-
-
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.23.0 to 0.38.0. - [Commits](https://github.com/golang/image/compare/v0.23.0...v0.38.0) --- updated-dependencies: - dependency-name: golang.org/x/image dependency-version: 0.38.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] committed
-
- 28 Mar, 2026 1 commit
-
-
wans10 committed
-
- 27 Mar, 2026 4 commits
-
-
哇塞大嘴好帥 committed
-
哇塞大嘴好帥 committed
-
feat: prevent metadata from overriding model fields
Seefs committed -
feitianbubu committed
-
- 26 Mar, 2026 1 commit
-
-
Bumps [picomatch](https://github.com/micromatch/picomatch) from 4.0.3 to 4.0.4. - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/picomatch/compare/4.0.3...4.0.4) --- updated-dependencies: - dependency-name: picomatch dependency-version: 4.0.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] committed
-
- 25 Mar, 2026 6 commits
-
-
refactor: expose skip-retry option and show it in rules list
Calcium-Ion committed -
Seefs committed
-
fix: restore pre-3400 OpenRouter billing semantics
Calcium-Ion committed -
Seefs committed
-
Seefs committed
-
Seefs committed
-
- 24 Mar, 2026 3 commits
-
-
fix: restore doubao coding plan deprecation and regex ignored models lost during conflict resolution
CaIon committed -
# Conflicts: # web/src/components/table/channels/modals/EditChannelModal.jsx
CaIon committed -
- Pin all GitHub Actions to commit SHA to prevent supply chain attacks - Enable SLSA provenance attestation (mode=max) and SBOM generation - Add cosign keyless signing for Docker images via GitHub OIDC - Capture and output image digests to GitHub Job Summary - Pin Dockerfile base images to digest (bun:1, golang:1.26.1-alpine, debian:bookworm-slim) - Add SHA256 checksum generation for binary releases (Linux/macOS/Windows) - Update actions/checkout v3->v4, actions/setup-go v3->v5 in release.yml
CaIon committed
-
- 23 Mar, 2026 3 commits
-
-
fix: the "detail" field is empty, an empty field was sent to upstream
Calcium-Ion committed -
refactor: optimize billing flow for OpenAI-to-Anthropic convert
Calcium-Ion committed -
Refactor/codex usage
Calcium-Ion committed
-