mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Capture rollout budget units from response usage (#36641)
## What changed - Parse `codex_rollout_budget_units` from completed Responses API usage into `TokenUsage`. - Keep the provider-only value out of serialized protocol, JSON schema, and TypeScript representations. ## Testing - Cover the value in unit and end-to-end SSE response parsing tests. GitOrigin-RevId: a53d4202beb9c8985d25894cb10e7c01f20b2a44
This commit is contained in:
@@ -3217,6 +3217,7 @@ mod tests {
|
||||
output_tokens: 0,
|
||||
reasoning_output_tokens: 0,
|
||||
total_tokens: 321,
|
||||
codex_rollout_budget_units: None,
|
||||
},
|
||||
last_token_usage: codex_protocol::protocol::TokenUsage::default(),
|
||||
model_context_window: None,
|
||||
|
||||
Reference in New Issue
Block a user