Commit 9a7b760
fix: cap openai <2.45 for openai-agents 0.14.x compatibility
openai 2.45.0 made `InputTokensDetails.cache_write_tokens` a required
field, but openai-agents 0.14.x (the latest release) still constructs
`InputTokensDetails(cached_tokens=0)` in agents/usage.py. As a result
every `Runner.run_streamed` call raises a pydantic ValidationError at
context setup, before any LLM request.
The repo's own uv.lock pins openai 2.40.0 so unit tests pass, but the
tutorial agents resolve their dependencies fresh (no lockfile) and pick
up openai 2.45.0, which is why the "Test Tutorial Agents" workflow fails
on every branch for all openai-agents based tutorials (010_multiturn,
020_streaming, temporal openai-agents tools/HIL, state_machine, and the
other-SDKs base tutorial).
Capping openai <2.45 in the agentex-sdk deps makes fresh resolves land
on openai 2.44.0, which is compatible. Drop the ceiling once openai-agents
ships a fix.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 619c9c2 commit 9a7b760
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments