解决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 <noreply@anthropic.com>
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 <noreply@anthropic.com> Co-authored-by: Ding <44717411+ding113@users.noreply.github.com>
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
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 <github@multica.ai>
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 <noreply@anthropic.com>
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
pushed a commit
to dev-fan-sophon/boxai
that referenced
this pull request
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 <noreply@anthropic.com>
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
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