fix(growth): harden AI jobs and cost controls

This commit is contained in:
2026-08-21 01:48:47 +03:30
parent 86e9d7c5f9
commit a15c04cac1
13 changed files with 366 additions and 78 deletions

View File

@@ -41,6 +41,8 @@ type Usage struct {
InputTokens int64 `json:"inputTokens"`
OutputTokens int64 `json:"outputTokens"`
LatencyMS int64 `json:"latencyMs"`
ProviderRequests int64 `json:"providerRequests"`
ReservedTokens int64 `json:"reservedTokens"`
ProviderRequestID string `json:"providerRequestId,omitempty"`
EstimatedCost string `json:"estimatedCost,omitempty"`
}
@@ -77,6 +79,7 @@ type Record struct {
Usage Usage
ManualRefresh bool
TehranRefreshDay *time.Time
ClaimToken string
}
type CreateRequest struct {