Skip to content

release: graphn 0.1.5 (relax openai constraint to <3)#11

Merged
kunwar-vp merged 1 commit into
mainfrom
chore/bump-openai-constraint
May 14, 2026
Merged

release: graphn 0.1.5 (relax openai constraint to <3)#11
kunwar-vp merged 1 commit into
mainfrom
chore/bump-openai-constraint

Conversation

@kunwar-vp
Copy link
Copy Markdown
Collaborator

Summary

  • Relax the openai runtime dependency from <2 to <3 so graphn installs cleanly alongside projects that have already moved to openai>=2. Several customers have hit pip's resolver on this.
  • Bump version to 0.1.5 and add the matching ## [0.1.5] CHANGELOG section so the release workflow auto-tags + publishes on merge.

Why this is safe

The SDK's only openai API surface is:

  • OpenAI / AsyncOpenAI clients (constructor args unchanged in 2.x)
  • chat.completions.create (sync + async)
  • models (SyncPage[Model] / AsyncPage[Model])
  • AuthenticationError and InternalServerError exception classes

None of those changed across the 1.x → 2.x boundary. The only listed openai 2.0.0 breaking change is in the Responses API: ResponseFunctionToolCallOutputItem.output and ResponseCustomToolCallOutput.output now accept array forms in addition to strings. This SDK does not import or use the Responses API anywhere.

Test plan

  • ruff check src tests — clean
  • pytest -ra — 43/43 pass against openai==2.36.0 (latest at time of writing) with no source changes
  • CI matrix (3.10 / 3.11 / 3.12 / 3.13) green on PR
  • On merge, auto-tag job creates v0.1.5 and publish ships to PyPI in the same workflow run

Customer impact

  • Anyone pinned to openai<2 keeps working; the lower bound is unchanged at >=1.50.
  • Anyone on openai>=2 can now pip install graphn without resolver conflicts.

Customers on openai>=2 hit pip's resolver when installing graphn
because pyproject pinned openai<2. The SDK only uses
chat.completions.create and models (plus OpenAI / AsyncOpenAI
clients and AuthenticationError / InternalServerError exception
classes); none of these changed across 1.x -> 2.x. The sole openai
2.0.0 breaking change is in the Responses API
(ResponseFunctionToolCallOutputItem.output now allows arrays), which
this SDK does not touch. pytest -ra passes 43/43 against
openai==2.36.0 with no source changes; ruff is clean.
@kunwar-vp kunwar-vp merged commit 4437847 into main May 14, 2026
7 checks passed
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.

1 participant