Skip to content

Commit fabca42

Browse files
fix(deps): pin openai==2.44.0 to avoid InputTokensDetails breaking ch… (#191)
* fix(deps): pin openai==2.44.0 to avoid InputTokensDetails breaking change (#187) openai 2.45.0 added a required, no-default field cache_write_tokens to InputTokensDetails. openai-agents 0.17.3 builds that object without the field, so every LLM response crashes usage parsing with a pydantic ValidationError. openkb did not pin openai, so fresh installs resolved it to 2.45/2.46 and broke on any model. Pin below 2.45 until openai-agents adapts. * chore(deps): update uv.lock for openai==2.44.0 pin (#187)
1 parent 4b8c0db commit fabca42

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ dependencies = [
3939
"watchdog==6.0.0",
4040
"litellm==1.87.2",
4141
"openai-agents==0.17.3",
42+
# openai 2.45.0 added a required `cache_write_tokens` field to
43+
# InputTokensDetails that openai-agents 0.17.3 does not set, crashing
44+
# usage parsing on every response (issue #187). Pin below 2.45 until
45+
# openai-agents catches up.
46+
"openai==2.44.0",
4247
"pyyaml==6.0.3",
4348
"python-dotenv==1.2.2",
4449
"json-repair==0.59.10",

uv.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)