Evaluate OpenAI SDK v7 support and the Node.js 22 transition
Source
- Real use case
- Competitive reference
- Systematic gap
- Discussion / inspiration
Maintainer source: owner initiative.
Problem
PR #453 upgrades OMA's built-in OpenAI dependency to v6.49 while raising the minimum runtime from Node.js 18 to Node.js 20. OpenAI SDK v7 has since become the upstream current major and declares Node.js 22 or newer.
Replacing v6 with v7 immediately would remove the Node.js 20 compatibility window that #453 intentionally preserves. Leaving the decision implicit would also make it unclear whether OMA is intentionally staying on v6 or has simply fallen behind upstream.
Current contract after #453:
- OMA's built-in OpenAI and OpenAI-compatible adapters use OpenAI SDK v6.
- OMA supports and tests Node.js 20, 22, and 24.
- The optional Vercel AI SDK 7 integration is separate and already requires Node.js 22 or newer.
- Existing users do not need to take action.
Proposed Solution
Evaluate OpenAI SDK v7 as a tracked compatibility decision rather than an immediate dependency replacement.
The evaluation should cover:
- Chat Completions requests and streaming, including final usage-only chunks
- JSON-schema function tool calls and unsupported custom tool-call variants
- API error status, retry interaction, timeouts, and real
APIUserAbortErrorcancellation - Azure OpenAI and every OpenAI-compatible adapter that reuses the shared conversion boundary
- whether OpenAI SDK types leak into OMA's public API
- Node.js and TypeScript requirements
- package-manager behavior when an application also installs
openai@7
Compare at least these paths:
- Keep OpenAI SDK v6 for the current OMA major and adopt v7 with a future Node.js 22 minimum in the next OMA major.
- Support v6 and v7 concurrently through an explicit dependency-injection, peer-dependency, or lazy-loading boundary without forcing Node.js 20 users to upgrade immediately.
The outcome should include:
- a go/no-go recommendation for each path
- a supported SDK and Node.js compatibility matrix
- the required deterministic boundary tests
- the migration and deprecation notice needed before removing Node.js 20
- a target release category or milestone, without promising a date before the evaluation is complete
Alternatives Considered
- Upgrade directly to v7 now: rejected for the moment because it would immediately raise the runtime floor to Node.js 22.
- Remain on v6 indefinitely: rejected because OMA should make major SDK support decisions explicitly and keep pace with an actively evolving provider boundary.
Additional context
- #391 tracked the original v4-to-v6 evaluation.
- #453 implemented the v6 and Node.js 20 compatibility baseline.
- OpenAI Node SDK: https://github.com/openai/openai-node
Source: open-multi-agent/open-multi-agent