Skip to content

Fix type checking for openai 2.45.0#1673

Merged
tconley1428 merged 1 commit into
mainfrom
maplexu/fix-openai-245-type-check
Jul 24, 2026
Merged

Fix type checking for openai 2.45.0#1673
tconley1428 merged 1 commit into
mainfrom
maplexu/fix-openai-245-type-check

Conversation

@xumaple

@xumaple xumaple commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

openai 2.45.0 added a required cache_write_tokens field to InputTokensDetails; construct it via model_validate so the test type-checks with both older and newer openai.

@xumaple
xumaple requested review from a team as code owners July 23, 2026 21:58
@tconley1428
tconley1428 merged commit 60e3b73 into main Jul 24, 2026
52 of 59 checks passed
@tconley1428
tconley1428 deleted the maplexu/fix-openai-245-type-check branch July 24, 2026 00:02
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.

3 participants