Back to Explore

openai/openai-node

GitHub
10 updates · last 90 days1 watchersOpen source

Last release:

Official OpenAI TypeScript and JavaScript client library that lets you call the OpenAI REST API from Node.js or other JS/TS environments. It provides convenient methods for common APIs such as the Responses API, supports streaming via SSE, and includes helpers for features like file uploads and workload identity authentication.

Project status

  • Actively maintained, with recent merged updates (last upstream push on 2026-07-26) and multiple version bumps in late July 2026 (v6.47.0 on 2026-07-14, v6.48.0 on 2026-07-17, v6.49.0 on 2026-07-23).
  • Update cadence appears brisk and ongoing, roughly every few days across recent entries, suggesting the library is in an active development cycle rather than maintenance mode.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v6.49.0

    v6.49.0 adds support for passing null (None) for `prompt_cache_key` and `safety_identifier`, and introduces new `spend_limit` admin APIs for organization and project scopes. It also expands schema capabilities with “standard schema” support and enhanced Zod schema handling (including schema definitions), alongside a set of streaming/tooling and JSON schema strictification fixes.

    Features
  • v6.48.0

    v6.48.0 adds a new admin endpoint to create API keys for organization project service accounts, and includes a client-side fix to normalize header names. It also performs generated API client updates and refreshes ecosystem test dependencies.

    Features
  • v6.47.0

    v6.47.0 adds support for passing a typed tool context into tool callbacks during chat completion tool execution, and introduces async iteration over streamed event emissions via new EventStream iterator utilities. It also extends streaming capabilities (including streaming file uploads and readable stream interop for ResponseStream and chat completion streams) and includes multiple stream finalization and Azure/Zod related fixes.

    Features
  • v6.46.0

    v6.46.0 includes an API update for gpt-5.6-sol along with several bug fixes in streaming behavior. The release notes document fixes for assistant delta ordering and normalization of missing tool call IDs.

    Features
  • v6.45.0

    v6.45.0 adds new hooks and helpers (notably afterCompletion for tool runs, plus new Responses and Realtime capabilities) and includes a set of bug fixes across streaming behavior, Zod schema extraction, and workload identity auth. The release notes emphasize correctness fixes rather than broad API contract changes.

    Features
  • v6.44.0

    v6.44.0 is primarily a generated API surface update driven by an OpenAPI spec or Stainless configuration refresh. The release notes only mention the spec/config update, but the code diff shows a concrete schema addition for MCP tool configuration.

  • v6.43.0

    v6.43.0 focuses on repository and build system maintenance, including a switch to pnpm in CI and development workflows, plus fixing TypeScript configuration to reference the main branch. Release notes also mention cleanup around scheduled releases and restoring pnpm repo configuration. No runtime API breaking changes are described in the release notes.

    Features
  • v6.42.0

    v6.42.0 adds first-class support for moderated completions via new `moderation` request options on both `responses` and `chat.completions`. The corresponding response objects now include an optional `moderation` field containing moderation results (or errors) for both input and output.

    Features
  • v6.41.0

    v6.41.0 adds Amazon Bedrock Responses support via a new `BedrockOpenAI` client. The change introduces Bedrock-specific configuration (baseURL/region/auth) and includes a streaming workaround to ensure `output_text` is present on Bedrock final streamed responses.

    Features
  • v6.40.0

    v6.40.0 expands audit log typing to include workload identity provider events and updates Responses/Conversation types to support the new additional_tools item. It also adjusts web search action typing so ActionSearch.query can be omitted. Additionally, the release removes the migrate CLI tooling from the package.

    BreakingFeatures