Skip to content

Add beta realtime cached token detail types#1879

Open
MukundaKatta wants to merge 1 commit into
openai:masterfrom
MukundaKatta:codex/beta-realtime-cached-token-details
Open

Add beta realtime cached token detail types#1879
MukundaKatta wants to merge 1 commit into
openai:masterfrom
MukundaKatta:codex/beta-realtime-cached-token-details

Conversation

@MukundaKatta
Copy link
Copy Markdown

@MukundaKatta MukundaKatta commented May 15, 2026

Summary

  • add cached_tokens_details to OpenAI.Beta.Realtime.RealtimeResponseUsage.InputTokenDetails
  • include nested cached token detail fields for text and audio tokens
  • add a compile-time/runtime type assertion covering the beta realtime usage shape

Fixes #1600.

Tests

  • yarn test tests/betaRealtimeTypes.test.ts

Notes

  • yarn build could not complete locally on Node v26.0.0 because tsc-multi/yargs fails with ReferenceError: require is not defined in ES module scope before type-checking.
  • ./node_modules/.bin/tsc --noEmit -p tsconfig.json is blocked by optional example dependencies missing locally (@azure/identity, express, next).

@MukundaKatta MukundaKatta requested a review from a team as a code owner May 15, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing cached_tokens_details property in RealtimeResponseUsage.InputTokenDetails

1 participant