Merge pull request #1120 from neotf/feat-04

feat: enhance token usage details for upstream OpenRouter
This commit is contained in:
Calcium-Ion authored and GitHub committed 2025-06-22 01:10:49 +08:00
commit 877529ef6b
5 files changed
+47 -3

No files matched your search

+2
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 {