Download codex-rs/protocol/src/response_usage.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/response_usage.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/protocol/src/response_usage.rs
-
curl -L -o response_usage.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/response_usage.rs
444 Bytes
| //! Per-response usage metadata reported by the upstream service, without aggregation. | |
| use schemars::JsonSchema; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| use serde_json::Value; | |
| use ts_rs::TS; | |
| /// Usage metadata reported for one upstream response. | |
| pub struct ResponseUsageMetadata { | |
| pub amount: Option<String>, | |
| pub metadata: Option<Value>, | |
| } | |