fix: usage cost(any) to support claude and gemini

This commit is contained in:
feitianbubu committed 2025-07-16 16:58:34 +08:00
1 parent 31adc39353
commit b1cf5d7705
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ type Usage struct {
OutputTokens int `json:"output_tokens"`
InputTokensDetails *InputTokenDetails `json:"input_tokens_details"`
// OpenRouter Params
Cost float64 `json:"cost,omitempty"`
Cost any `json:"cost,omitempty"`
}
type InputTokenDetails struct {