From cf5520a91cac599ea82366c674c0b0839e63d2b0 Mon Sep 17 00:00:00 2001 From: kunwar-vp Date: Thu, 14 May 2026 11:26:38 -0700 Subject: [PATCH] release: graphn 0.1.5 (relax openai constraint to <3) 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. --- CHANGELOG.md | 25 +++++++++++++++++++++++++ pyproject.toml | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b99f0a9..6a29d14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,31 @@ No `git tag`, no `git push --tags`, no Actions clicks. ## [Unreleased] +## [0.1.5] — 2026-05-14 + +Patch release. Widens the upper bound on the `openai` runtime +dependency so this SDK installs cleanly alongside projects that have +already upgraded to `openai>=2`. No behavior changes; no spec +changes. + +### Changed + +- `openai` dependency bound from `<2` to `<3`. The SDK only uses + `chat.completions.create` and `models` (plus the `OpenAI` / + `AsyncOpenAI` clients and the `AuthenticationError` / + `InternalServerError` exception classes), all of which are + unchanged across the 1.x → 2.x boundary. The single `openai` 2.0.0 + breaking change is in the Responses API + (`ResponseFunctionToolCallOutputItem.output` / + `ResponseCustomToolCallOutput.output` now accept array forms in + addition to strings), which this SDK does not touch. The full + test suite (`pytest -ra`, 43 tests) passes against `openai==2.36.0` + with no source changes. + + Customers pinned to `openai<2` keep working unchanged. Customers + on `openai>=2` can now install `graphn` without resolver + conflicts. + ## [0.1.4] — 2026-04-25 Patch release. Unifies how customers address custom models: pass diff --git a/pyproject.toml b/pyproject.toml index fa53004..ded26be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "graphn" -version = "0.1.4" +version = "0.1.5" description = "Official Python SDK for the Graphn API: custom-model lifecycle, secrets, and OpenAI-compatible inference." readme = "README.md" requires-python = ">=3.10" @@ -28,7 +28,7 @@ classifiers = [ dependencies = [ "httpx>=0.27,<0.29", "pydantic>=2.6,<3", - "openai>=1.50,<2", + "openai>=1.50,<3", "typing-extensions>=4.10; python_version < '3.11'", ]