Skip to content

令牌搜索适配MySQL,MJ日志增加图生文 图生图 - #5

Merged
Calcium-Ion merged 3 commits into
QuantumNous:mainfrom
luxlzz6:main
Nov 15, 2023
Merged

Calcium-Ion merged 3 commits into
QuantumNous:mainfrom
luxlzz6:main

Conversation

@luxlzz6

@luxlzz6 luxlzz6 commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

使用MySQL时候 key搜索是关键字,图生文 图生图的指令是prompt_en,内容过长增加了弹窗显示

@Calcium-Ion
Calcium-Ion merged commit f3b1f27 into QuantumNous:main Nov 15, 2023
Calcium-Ion pushed a commit that referenced this pull request Jan 8, 2024
seefs001 pushed a commit that referenced this pull request Oct 10, 2025
Fork Sync: Update from parent repository
t0ng7u added a commit that referenced this pull request Oct 28, 2025
DeJeune added a commit to DeJeune/new-api that referenced this pull request Jan 27, 2026
* feat: implement oauth

* chore: modify image

* fix:  make error message consistent add avoid magic number

* chore: clean unused env

* chore: clean again

* feat(oauth): oauth client

* feat(ui): oauth test

* feat(oauth): implement oauth clients

* fix: clean local yaml
quqi1599 referenced this pull request in quqi1599/gmvupup-new-api Apr 6, 2026
stratosphere-ai pushed a commit to stratosphere-ai/new-api that referenced this pull request Apr 12, 2026
Critical fixes:
- QuantumNous#1+QuantumNous#10: Wire hourly/daily cap checking into channel selection
  via ChannelShouldSkip hook + listing cache for hot-path lookups.
  IncrementHourlyDailyCaps now called after successful trade.
- QuantumNous#2: Capture RecordTrade error in relay handler and log it
- QuantumNous#3+QuantumNous#4+QuantumNous#6: Wrap RecordTrade in GORM DB.Transaction for atomicity
  (trade record + seller credit + token count in single tx, rollback
  on any failure)

Important fixes:
- QuantumNous#5: Add seller self-service withdrawal request endpoint
  POST /seller/withdrawal/request with CriticalRateLimit
  + withdraw button on earnings page
- QuantumNous#7: Admin suspend now collects and reports listing disable errors
  instead of silently ignoring them
- QuantumNous#8: Anthropic key validation changed from POST /v1/messages to
  GET /v1/models (lightweight, read-only, no token consumption)
- QuantumNous#9: CriticalRateLimit added to seller register, create listing,
  create API token, and withdrawal request endpoints

https://claude.ai/code/session_01VUyzgwX29o57mjURxJvYiN
x22x22 pushed a commit to x22x22/new-api that referenced this pull request Apr 24, 2026
令牌搜索适配MySQL,MJ日志增加图生文 图生图
QQhuxuhui added a commit to QQhuxuhui/new-api that referenced this pull request May 7, 2026
- GET history items now include operator_admin_username (LEFT JOIN users)
  and topup_count (subquery COUNT) per spec
- POST response includes topup_count so success toast can show
  "覆盖 N 笔充值" instead of dollar total
- Add TestRebindAfterPayout regression test for spec acceptance QuantumNous#5

Known limitation: InviteeRechargesTab is rendered inside UserDetailModal's
{data ?} analytics-data guard. If analytics fetch fails, the entire modal
(including this tab) shows Empty. This is consistent with the existing
behavior of the other tabs and out of scope for this feature.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
JAYotta added a commit to GraylightCN/new-api that referenced this pull request May 8, 2026
Squashed cherry of the PR QuantumNous#5 review feedback train (private fork).
Generic-only files; graylight-specific callback wiring is left out.

Key changes:
- service/task_billing.go: settle now wraps task.Quota persistence,
  funding adjustment, used_quota / channel.used_quota updates and
  billing log in a single DB transaction. RowsAffected guard on the
  targeted UPDATE so a phantom task ID aborts the settle without
  applying side effects. Subscription updated_at now reuses the
  settle timestamp. Cache invalidation moved out-of-tx to keep the
  primary commit fast.
- service/task_polling.go: SettleTaskBillingOnComplete is exported,
  accepts a nil adaptor (token fallback path), prefers TotalTokens
  but falls back to CompletionTokens when only the latter is reported.
- model/task.go: TieredVolcFlags grows resolution / duration /
  service_tier fields so the tiered_expr settle path can evaluate
  param() lookups even on callback-only deployments where task.Data
  is just {"id":"..."}.
- controller/relay.go: extractVolcFlags refactored to call the new
  parseVolcDuration helper. parseVolcDuration accepts float64, int,
  int64, json.Number and string forms; rejects negative, non-integer
  and out-of-int-range values. The decoder uses json.Decoder.UseNumber
  so numeric JSON values arrive as json.Number rather than float64.
- relay/channel/task/volcadapter/adaptor.go: buildSynthesizedBody
  reads resolution / duration / service_tier from TieredVolcFlags
  first, falling back to task.Data only when flags are absent — fixes
  settle on callback-only deployments. AdjustBillingOnComplete comment
  updated to reflect exported SettleTaskBillingOnComplete name.

Tests:
- service/task_billing_test.go: regression tests for the targeted
  UPDATE persistence, RowsAffected==0 guard, funding rollback, CAS
  win/lose on both refund and settle, nil-adaptor token fallback,
  PerCallBilling skip with nil adaptor, effectiveTokenCount fallback.
- controller/relay_volc_flags_test.go: parseVolcDuration string /
  json.Number / oversized / non-integer cases.
- relay/channel/task/volcadapter/adaptor_test.go: two new cases for
  callback-path flags carrying resolution and flags taking priority
  over task.Data in buildSynthesizedBody.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@xiaotian044500

Copy link
Copy Markdown

本地 Agent 已接管,开始处理 #5...

@aiken aiken mentioned this pull request May 14, 2026
k272314374 pushed a commit to k272314374/hmrouter that referenced this pull request May 16, 2026
另一窗口页面评审发现 5 处,逐条修复:

QuantumNous#1 TASKS M1 任务数 74→104(实质 bug)
   - 燃尽快报表 / 章节标题 / 关键指标 / 变更日志 四处 74 → 104
   - 74 是 9 通道拆分前的旧数;9 通道实际 = DB13+BA10+BB14+BC10+BD13
     +FA11+FB13+FC11+OP4+基础设施5 = 104(工作量汇总总计 117 = 9+104+4 反证)
   - STATE "共 100 任务" → 燃尽 130(M0 12+Spec 5+Phase0 9+M1 104)
   - 新增 CHK-15:燃尽 M1 数 == M1 章节实际任务行数(防再次失配)

QuantumNous#2 PRD §3 "员工账户偏好"行勾选不一致
   - 5 管理角色裸 ✅ → 统一 "✅自己"(管理员只能改自己偏好)

QuantumNous#3 PAGES §1 命名图例漏 AA 域码
   - 补 "AA=Admin-action Audit 元审计"

QuantumNous#4 STATE 未记录 5/16 改动
   - 头部日期 5/15→5/16;新增 "S-003 续(2026-05-16)" session 记录
     (coding-principles / 四层对齐修补 / 仓库重组)
   - 顺修:第三处编辑误删的 S-002 标题已还原

QuantumNous#5 /admin→/enterprise 路由迁移跨文档残留
   - ARCHITECTURE §7 features 树:admin/{announcements,skills,courses}
     → enterprise/{announcements,skills,courses}
   - agent-collaboration.md §1 表 + §8 CODEOWNERS 同步
     (health/dept-model-acl/system-settings 仍归 admin/ 系统域)
   - CODEOWNERS 加 enterprise/{announcements,skills,courses} → frontend-c 具体行

一致性 15/15 ✅

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
jiutubaba pushed a commit to jiutubaba/fx-api that referenced this pull request May 17, 2026
…ectness

Backend fixes:
- QuantumNous#1: doSub subscription idempotency via audit log check
- QuantumNous#2: markFailed only when status=RECHARGING (prevents overwriting COMPLETED)
- QuantumNous#3: ExpireTimedOutOrders checks upstream payment before expiring
- QuantumNous#4: Public verify endpoint for payment result page (no auth required)
- QuantumNous#5: EasyPay QueryOrder returns amount, confirmPayment handles zero amount
- QuantumNous#6: WxPay notifyUrl priority: request-first, config-fallback
- QuantumNous#7: EasyPay remove double URL decode in VerifyNotification
- QuantumNous#8: checkPaid/cancelUpstreamPayment use order's provider instance
- QuantumNous#9: Amount NaN/Inf/negative validation in order creation and refund
- QuantumNous#10: Refund amount comparison uses tolerance instead of float64 ==
- QuantumNous#11: Skip balance deduction on retry when previous rollback failed
- QuantumNous#12: checkPaid logs fulfillment errors instead of silently ignoring
- QuantumNous#13: WxPay certSerial added to required config fields

Frontend fixes:
- Payment result page no longer requires authentication
- Public verify API fallback for expired sessions
yujipeng pushed a commit to yujipeng/new-api that referenced this pull request May 21, 2026
Round 2 sync per architect's evidence closure (TES-69 comment 87c3958d):

- Rewrite 99-pending-items.md: all 12 grey-zone items closed-2026-05-21
  with evidence chains + handling outcome; appendix lists 5 known
  improvements (audio/task gate parity, svip default, three frontend
  guards, RPM/TPM tooltip, quota_data cleanup) tracked by PJM separately
- 03-billing.md #1: add 3.1.4 explaining text-path two gates
  (SelfUseMode + AcceptUnsetRatioModel) vs audio/task path no-gate
  asymmetry for unregistered models
- 03-billing.md QuantumNous#2 (in 02): rewrite TopupGroupRatio as
  topup-side discount/markup multiplier, not billing-side; document
  formula, four payment paths, fallback 1.0 behavior
- 03-billing.md QuantumNous#9: rewrite OtherRatios as active dynamic billing
  multiplier for task/image paths (seconds/size/n), list adapters,
  clarify text-path no-op semantics; remove "reserved field" wording
- 01/02 QuantumNous#3 QuantumNous#4 QuantumNous#5 QuantumNous#6 QuantumNous#7: operational hints planted (group ref check,
  FixAbility low-peak single-instance, double-write reminder w/ note
  that automatic linkage check is not yet implemented, svip default
  workaround, ip log default-false with compliance rationale)
- 05-faq QuantumNous#8 errata: actual error message is
  MsgDistributorTokenModelForbidden ("该 token 不允许使用模型 X"),
  not "token model limit is empty"; FAQ scene 4 rewritten as full
  troubleshooting chain
- 05-faq QuantumNous#10 QuantumNous#11 QuantumNous#12: planted hints for usingGroup-only logs.group
  (open other.user_group / other.token_group after schema extension),
  RPM/TPM as 60s snapshot, quota_data cleanup via DBA
- README, 5.2 summary table, 5.3 troubleshooting matrix, and inline
  anchors updated to match new 99-pending-items.md headings

Co-authored-by: multica-agent <[email protected]>
Lyianu pushed a commit to Lyianu/new-api that referenced this pull request Jul 21, 2026
语义统一(QuantumNous#5):上游 new-api 中同一个 TopupGroupRatio 在不同通道含义
相反 —— 易支付/Waffo 只作用于收款侧(付 额度×倍率,入账足额),而
Stripe 双边乘(付款和入账都放大,倍率实际不起加价作用)。以 new-api
最老的充值路径(收款侧加价)为准收敛:GetChargedAmount 不再乘倍率,
入账恒为请求额度,getStripePayMoney 保持 gross-up(额度×倍率×折扣)。
新增回归测试锁定该语义。

报价一致(QuantumNous#6):GetTopUpInfo 下发用户分组的 topup_group_ratio,
前端预设金额卡片的"Pay ¥X"乘上该倍率(Stripe 与易支付路径均修),
消除倍率≠1 分组下卡片报价与确认弹窗/实际扣款不符的问题。

Co-Authored-By: Claude Fable 5 <[email protected]>
zer0Black added a commit to Agents-Zone/sili-smart-api that referenced this pull request Aug 1, 2026
Firesuiry pushed a commit to Firesuiry/tako-newapi that referenced this pull request Aug 27, 2026
fix(catfk): refresh expired merchant sessions
happy66dev added a commit to happy66dev/new-api that referenced this pull request Sep 4, 2026
- RecordConsumeLog 移除渠道字段被候选序号覆盖的逻辑,保留真实服务渠道 id,
  internal 候选不再丢失实际 relay 渠道;候选链序号由 candidates 序列承载喵~
- 前端 type=9 渠道列/详情:internal 候选显示真实渠道名(如 Agentrouter QuantumNous#5),
  custom 候选无 new-api 渠道则显示成功候选标识(模型名/显示名)喵~
- 修复渠道名用候选序号反查渠道表导致的错误展示(如显示成 NIM)喵~
- 更新后端日志测试断言并新增前端候选标识辅助函数单元测试喵~
salem-2007 added a commit to salem-2007/new-api that referenced this pull request Sep 10, 2026
令牌搜索适配MySQL,MJ日志增加图生文 图生图
dukaworks added a commit to dukaworks/micross-api that referenced this pull request Sep 18, 2026
`npm version <X>` enforces strict semver (major.minor.patch). 4-segment
versions like v0.37.1.1 trigger "Invalid Version: 0.37.1.1" from npm.

This caused Build Electron App QuantumNous#5 on tag v0.37.1.1 to fail at
step 8 "Update Electron version" — frontend, Go binary, and
electron-builder all complete, then this step dies and skips
"Build Electron app (Windows)" + "release" job.

Fix: use `npm pkg set version="$VERSION"` instead. pkg set writes the
package.json field directly without running the semver validator.
Electron-builder reads the version field verbatim, so the resulting
binary uses whatever version string is set.

Why this matters beyond v0.37.1.1:
- Any future 4-segment patch tag (v0.37.2.1, v0.38.1.3) would hit
  the same wall.
- npm version 7+ removed `--allow-same-version`'s lenient parsing,
  so the previous escape hatch stopped working.
@394988736 394988736 mentioned this pull request Oct 26, 2026
8 tasks done
Akiyo-dayo added a commit to Akiyo-dayo/new-api that referenced this pull request Nov 6, 2026
The reviewer withdrew fix QuantumNous#5 (Aemeath's art will be redrawn later), so this
restores the Aemeath sign-in and dashboard images to their state at
1dc031c: the r1 convene and key-art files, CREDITS.md and the ?v=aemeath-r1
cache strings. It also removes the Aemeath-only sign-in positioning
(`.aemeath-convene`).

Fixes 1-4 from f3eb237 are kept: the inline seal, the comma taglines, the
Claude night wash and the Claude credit pill.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants