fix: charge local input tokens when Gemini returns empty response

This commit is contained in:
Seefs
2026-02-05 15:57:17 +08:00
parent 9d73aa44b7
commit ecebd619a4
3 changed files with 9 additions and 9 deletions

View File

@@ -113,6 +113,7 @@ type RelayInfo struct {
UserQuota int
RelayFormat types.RelayFormat
SendResponseCount int
ReceivedResponseCount int
FinalPreConsumedQuota int // 最终预消耗的配额
// BillingSource indicates whether this request is billed from wallet quota or subscription.
// "" or "wallet" => wallet; "subscription" => subscription