Repository navigation
解决mj绘图/mj/task 400的错误 - #10
Merged
Merged
Conversation
seefs001
pushed a commit
that referenced
this pull request
Oct 10, 2025
Fork Sync: Update from parent repository
sususu98
pushed a commit
to sususu98/new-api
that referenced
this pull request
Dec 1, 2025
修复 Issue QuantumNous#10 - 开发环境首次启动时自动加载价格表 **问题**: - 之前只在生产环境 (NODE_ENV=production) 初始化价格表 - 开发环境用户首次登录时无价格数据,系统功能不可用 - 需要手动上传价格表文件,影响 onboarding 体验 **解决方案**: - 在开发环境 (NODE_ENV=development) 启动时自动检查价格表 - 如果数据库为空,从 public/seed/litellm-prices.json 导入种子数据 - 不执行数据库迁移 (开发环境建议手动运行 pnpm db:migrate) - 采用 Fail Open 策略: 初始化失败不阻塞应用启动 **影响范围**: - ✅ 开发环境: 首次启动自动加载价格表 - ✅ 生产环境: 行为不变,继续正常工作 - ✅ Docker 部署: 不受影响 (已在生产模式) Fixes QuantumNous#10 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
sususu98
pushed a commit
to sususu98/new-api
that referenced
this pull request
Dec 1, 2025
解决 Issue QuantumNous#10: 开发环境下价格表种子文件未自动初始化的问题 ## 问题描述 - 用户首次使用 ADMIN_TOKEN 登录后台时,系统无价格表数据 - 导致用户添加、供应商管理等功能无法正常使用 - 需要手动上传价格表,影响 onboarding 体验 ## 根本原因 `instrumentation.ts` 中的 `ensurePriceTable()` 仅在生产环境执行: ```typescript if (process.env.NODE_ENV === "production" && process.env.AUTO_MIGRATE !== "false") ``` 开发环境启动时不会自动导入 `public/seed/litellm-prices.json` ## 解决方案 新增开发环境分支,在开发模式下自动初始化价格表: ```typescript else if (process.env.NODE_ENV === "development") { logger.info("Development mode: initializing price table if needed"); await ensurePriceTable(); } ``` ## 影响范围 - **开发环境**: 首次启动时自动导入价格表,无需手动上传 - **生产环境**: 行为不变,继续正常工作 - **Docker 部署**: 行为不变(NODE_ENV=production 默认已启用) ## 测试步骤 1. 删除现有数据库(或使用空数据库) 2. `pnpm dev` 启动开发服务器 3. 查看日志确认 "Development mode: initializing price table if needed" 4. 登录后台验证价格表数据已自动导入 Fixes QuantumNous#10 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]> Co-authored-by: Ding <[email protected]>
sususu98
pushed a commit
to sususu98/new-api
that referenced
this pull request
Dec 1, 2025
…spacing chore: 调整使用日志间距
cuijinyu
added a commit
to cuijinyu/new-api
that referenced
this pull request
Mar 17, 2026
fix element_id accuracy loss
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
解决mj绘图/mj/task 400的错误
4 tasks done
tradzero
pushed a commit
to tradzero/new-api
that referenced
this pull request
May 6, 2026
refactor: simplify embedded file structure in main.go
jiutubaba
pushed a commit
to jiutubaba/fx-api
that referenced
this pull request
May 17, 2026
## 变更内容
### CI/CD
- 添加 GitHub Actions 工作流(test + golangci-lint)
- 添加 golangci-lint 配置,启用 errcheck/govet/staticcheck/unused/depguard
- 通过 depguard 强制 service 层不能直接导入 repository
### 错误处理修复
- 修复 CSV 写入、SSE 流式输出、随机数生成等未处理的错误
- GenerateRedeemCode() 现在返回 error
### 资源泄露修复
- 统一使用 defer func() { _ = xxx.Close() }() 模式
### 代码清理
- 移除未使用的常量
- 简化 nil map 检查
- 统一代码格式
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]>
fran0220
pushed a commit
to fran0220/you-box
that referenced
this pull request
Jun 10, 2026
Systemic fixes: - ui/table: make the scroll wrapper a CSS inline-size container so wide tables no longer propagate min-content width up flex layouts (fixes page-level horizontal clipping on chat presets, channel affinity, model/group pricing and others at <=768px) - data-table/table-empty: center empty states on the visible scroll viewport (sticky + 100cqw) instead of the full table scroll width - data-table/pagination: clamp page count to >=1 (no more 'Page 1 of 0') - data-table/column-header: enforce mono uppercase header typography on sortable column buttons to match static headers - layout/section-page-layout: give the page title a minimum width and let the actions slot shrink and wrap (title no longer collapses to one letter; action buttons no longer pushed off-canvas) - ui/alert: flow AlertAction below content on mobile instead of absolute top-right (button covered the alert title at 375px) Page fixes: - playground: styled empty state for the blank conversation area - pricing table (public): provide the @container/content context so the pagination footer renders one page indicator - wallet/profile: stat strips stack at <sm so labels stay readable - payment settings: real hex colors in templates and legacy --semi-* token mapping for color swatches - quota settings: compliance notice uses warning, not destructive - dashboard users: drop chart spec titles duplicated by card headers - i18n: decode HTML entities rendered literally in placeholders/help text (&QuantumNous#10;, </>, —) across all six locales Co-Authored-By: Claude Fable 5 <[email protected]>
finger92
added a commit
to protagolabs/new-api
that referenced
this pull request
Jul 8, 2026
…umNous#10/QuantumNous#11/QuantumNous#12) Re-applied onto rc.19: This channel has been disabled / invalid beta flag / anthropic-beta header / Operation not allowed.
fran0220
referenced
this pull request
in dev-fan-sophon/boxai
Jul 25, 2026
* Skip generated directories in ripgrep searches * Apply ripgrep exclusions after user globs
zer0Black
added a commit
to Agents-Zone/sili-smart-api
that referenced
this pull request
Aug 1, 2026
…库失败日志 Co-Authored-By: Claude <[email protected]>
Firesuiry
pushed a commit
to Firesuiry/tako-newapi
that referenced
this pull request
Aug 27, 2026
…chat-claude feat(relay): support Responses API on Claude channels
salem-2007
added a commit
to salem-2007/new-api
that referenced
this pull request
Sep 10, 2026
解决mj绘图/mj/task 400的错误
tanhao0068
added a commit
to tanhao0068/new-api
that referenced
this pull request
Oct 16, 2026
老板反馈:「视频生成页面,中间的参数设置页面没有展示出来,功能页不可用,请检查」。 核实:视频模式此前既无参数面板(parameterPanel 仅对 chat/image 赋值)也无提交路径。 后端(登录态任务入口,复用既有任务链路): - 新增 controller/playground_video.go:PlaygroundVideoSubmit / Fetch / Content (临时令牌 → Pin/Prepare/Distribute → RelayTask / RelayTaskFetch / VideoProxy) - 新增 middleware/playground_task_path.go:路径改写 shim(见下) - 上游改动 QuantumNous#10(relay-router.go 1 处):新增独立 /pg 分组注册三条视频路由 (独立分组:任务链路要求 Pin→Prepare→Distribute 顺序,不能挂组级 Distribute) 前端(原型 REQ-013 一次到位): - components/video/studio-video-parameter-panel.tsx:Model / Upload Image / Seed / Negative Prompt - components/studio-video-workspace.tsx:提交 / 进度 / 播放器+下载+再生成 / 失败 - lib/video-request.ts:创建、轮询、Blob 取件、状态归一化 - 输入区与壳层接线(studio-prompt-bar.tsx / index.tsx,含卸载时取消轮询与释放 object URL) - i18n:4 词条 × 7 语言(各 7322 键一致) - 测试:__tests__/video-generation.test.ts 7 项(含两个回归) 调试中定位并修复的四个真实缺陷(详见 docs/tech/selfhosted-t2v-integration.md §5): 1. type-61 渠道在登录态路径下被身份过滤拒绝 —— 平台按**请求路径**解析插件端点, /pg/... 不在注册表 → 无法 pin → expected_task_plugin_key 为空 → 拒绝类型 61 渠道。 处置:新增路径改写中间件(复用同一套解析逻辑,且不改上游核心路由/注册表) 2. 登录态临时令牌额度为 0 → 任务预扣费失败(pre_consume_token_quota_failed)。 处置:临时令牌 UnlimitedQuota=true(扣费走用户钱包,与文本对话一致) 3. 任务查询响应是 {code,message,data} 包装且状态为大写(SUCCESS/FAILURE)—— 前端按顶层小写读取,导致任务已完成而页面停在「生成中」。处置:兼容两种形态 + 状态归一化 4. <video> 无法携带 Authorization 头(networkState=NETWORK_NO_SOURCE)—— 处置:带鉴权取回 Blob 后以 object URL 播放/下载 实测(浏览器 + 服务端): - 面板:Video Generation | Model | mibi/wan2.2-t2v | Upload Image(暂无图生视频)| Seed | Negative Prompt - 提交 → 「Generating... 30%」+ 任务 id;服务端日志每 5s 一次 GET /pg/videos/<id> 200 - 出片:页面 <video src=blob:…> readyState=4、640x640、时长 2.06s、下载可用 - 取件:GET /pg/videos/<id>/content 200 video/webm 241,743 bytes(EBML 校验通过) - 计费:logs channel_id=3 quota=500000 token_name=playground-video-default 作者:CTO Agent
17 tasks
sampx
added a commit
to sampx/new-api
that referenced
this pull request
Nov 25, 2026
z7-btc
pushed a commit
to z7-btc/new-api
that referenced
this pull request
Nov 29, 2026
本地工作区积累的各次线上发布对应的源码改动,此前一直未提交, 导致 11-28 从本仓库重建 dist 时把 11-27 的改动整包覆盖丢失。 此提交把以下已上线功能的源码固化进底稿: - PR QuantumNous#8:钱包充值卡人民币 ¥ 展示、订阅套餐 ¥ 标价、订阅走支付中心(pc_ 入口) - PR QuantumNous#9:登录/注册页改版 - PR QuantumNous#10:「如何对接」页(/connect)与脚本文件 - PR QuantumNous#14:钱包充值返佣 5%/10%/15% 与档位说明 自本提交起,从本仓库任意干净克隆重建 dist 都能复现线上前端。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加了 else