feat: enhance cache_create_tokens calculation for OpenRouter
This commit is contained in:
1 parent
c0df38767c
commit
dde8c49a2e
2 files changed
+29
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user