Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add cache write accounting to OpenAI interceptors and service tier to TokenUsage metadata for all interceptors - #28714

Merged
mtojek merged 2 commits into
release/2.37from
pawel/aigov-630-account-for-cache-write-tokens-in-ai-gateway-costs-2-37
Aug 27, 2026
Merged

fix: add cache write accounting to OpenAI interceptors and service tier to TokenUsage metadata for all interceptors#28714
mtojek merged 2 commits into
release/2.37from
pawel/aigov-630-account-for-cache-write-tokens-in-ai-gateway-costs-2-37

Conversation

@pawbana

@pawbana pawbana commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Cherry picks

Adds cache write token accounting to OpenAI interceptors.
@linear-code

linear-code Bot commented Aug 27, 2026

Copy link
Copy Markdown

AIGOV-630

Adds `service_tier` information to token usage recordings made by OpenAI
and Anthropic interceptors.
@pawbana pawbana changed the title fix: add cache write accounting to OpenAI interceptors fix: add cache write accounting to OpenAI interceptors and service tier to TokenUsage metadata for all interceptors Aug 27, 2026
@pawbana
pawbana requested a review from mtojek August 27, 2026 16:17
@mtojek
mtojek merged commit 89df1c2 into release/2.37 Aug 27, 2026
36 checks passed
@mtojek
mtojek deleted the pawel/aigov-630-account-for-cache-write-tokens-in-ai-gateway-costs-2-37 branch August 27, 2026 16:22
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants