Skip to content

修复:自配模型绕过计费并保留用量统计 - #1336

Merged
yokowu merged 1 commit into
mainfrom
fix-user-model-billing
Sep 24, 2026
Merged

yokowu merged 1 commit into
mainfrom
fix-user-model-billing

Conversation

@yokowu

@yokowu yokowu commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

变更

  • 自配文本模型跳过积分预留与结算,独立写入 model_calls 保留 Token 用量和失败记录。
  • 自配生图模型跳过计费交易,保留 image_jobs 中的任务与生成数量。
  • 系统模型继续走原有计费链路,流式文本请求仍请求上游返回用量。

验证

  • cd monkeyai/backend && go test ./...
  • cd monkeyai/backend && go vet ./...
  • 未配置 MONKEYAI_TEST_DATABASE_URL,数据库集成用例被跳过。

备注

  • 不自动修改历史待核查交易;历史记录需核对计费快照后单独清理。

@yokowu
yokowu merged commit abe44fd into main Sep 24, 2026
2 checks passed
@yokowu
yokowu deleted the fix-user-model-billing branch September 24, 2026 06:32
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.

1 participant