feat: enhance cache_create_tokens calculation for OpenRouter

This commit is contained in:
neotf
2025-05-29 22:24:29 +08:00
parent 66778efcc5
commit 3d9587f128
2 changed files with 29 additions and 0 deletions

View File

@@ -178,6 +178,8 @@ type Usage struct {
InputTokens int `json:"input_tokens"`
OutputTokens int `json:"output_tokens"`
InputTokensDetails *InputTokenDetails `json:"input_tokens_details"`
// OpenRouter Params
Cost float64 `json:"cost,omitempty"`
}
type InputTokenDetails struct {