Parse OpenAI's native cache_write_tokens (chat prompt_tokens_details / responses input_tokens_details), bill it at the cache-creation ratio, and clamp the uncached prompt remainder at zero since cached + cache-write can exceed prompt_tokens. Propagate the field through chat/responses/claude format conversions and tiered expression billing (cc variable).
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| internal | Loading commit data... | |
| media.go | Loading commit data... | |
| request_compat.go | Loading commit data... | |
| request_registry.go | Loading commit data... | |
| request_registry_test.go | Loading commit data... | |
| response_compat.go | Loading commit data... | |
| response_registry.go | Loading commit data... | |
| response_registry_test.go | Loading commit data... | |
| text_converter_registry.go | Loading commit data... | |
| text_converter_registry_test.go | Loading commit data... |