• erio's avatar
    fix(channel): use upstream model for account stats pricing and remove channel pricing fallback · 11c46068
    erio authored
    - resolveAccountStatsCost now uses the final upstream model (after
      account-level mapping) to match custom pricing rules, fixing the
      issue where requested model (e.g. claude-sonnet-4-5) didn't match
      rules configured for upstream model (e.g. claude-opus-4-6)
    - Remove tryChannelPricing fallback — only custom rules are applied,
      unmatched requests use default formula (total_cost × rate)
    - Remove unused billingService and serviceTier parameters
    - Update description: "启用后将支持自定义账号统计的模型价格"
    11c46068
gateway_service.go 296 KB