From 9c19e5ab4d019d01edf25f068fb72107c580433d Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 5 Jun 2026 08:29:31 -0700 Subject: [PATCH 1/5] Update default branch references to main --- .github/workflows/create-releases.yml | 4 ++-- CHANGELOG.md | 2 +- README.md | 2 +- realtime.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml index 77cbe7f7b9..43014bd85e 100644 --- a/.github/workflows/create-releases.yml +++ b/.github/workflows/create-releases.yml @@ -4,12 +4,12 @@ on: - cron: '0 5 * * *' # every day at 5am UTC push: branches: - - master + - main jobs: release: name: release - if: github.ref == 'refs/heads/master' && github.repository == 'openai/openai-node' + if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-node' runs-on: ubuntu-latest environment: publish permissions: diff --git a/CHANGELOG.md b/CHANGELOG.md index c10c392438..a97e5640ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1268,7 +1268,7 @@ Full Changelog: [v5.0.0...v5.0.1](https://github.com/openai/openai-node/compare/ ## 5.0.0 (2025-05-29) -This release migrates from node-fetch to builtin fetch, for full release notes see [MIGRATION.md](https://github.com/openai/openai-node/blob/master/MIGRATION.md). +This release migrates from node-fetch to builtin fetch, for full release notes see [MIGRATION.md](https://github.com/openai/openai-node/blob/main/MIGRATION.md). Full Changelog: [v5.0.0-alpha.0...v5.0.0](https://github.com/openai/openai-node/compare/v5.0.0-alpha.0...v5.0.0) diff --git a/README.md b/README.md index e7318dd105..7625da1e24 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ import OpenAI from 'jsr:@openai/openai'; ## Usage -The full API of this library can be found in [api.md file](api.md) along with many [code examples](https://github.com/openai/openai-node/tree/master/examples). +The full API of this library can be found in [api.md file](api.md) along with many [code examples](https://github.com/openai/openai-node/tree/main/examples). The primary API for interacting with OpenAI models is the [Responses API](https://platform.openai.com/docs/api-reference/responses). You can generate text from the model with the code below. diff --git a/realtime.md b/realtime.md index 1f47600e41..48179d5d99 100644 --- a/realtime.md +++ b/realtime.md @@ -68,7 +68,7 @@ rt.socket.addEventListener('open', () => { }); ``` -A full example can be found [here](https://github.com/openai/openai-node/blob/master/examples/realtime/websocket.ts). +A full example can be found [here](https://github.com/openai/openai-node/blob/main/examples/realtime/websocket.ts). ### Realtime error handling From 902d8479e4c8d85ba1b3f5708110c76e125e8366 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 5 Jun 2026 08:36:55 -0700 Subject: [PATCH 2/5] Fix branch rename CI jobs --- .github/workflows/detect-breaking-changes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml index 2ecc70d882..1f318b396e 100644 --- a/.github/workflows/detect-breaking-changes.yml +++ b/.github/workflows/detect-breaking-changes.yml @@ -26,7 +26,7 @@ jobs: node-version: '20' - name: Install dependencies run: | - yarn install + ./scripts/bootstrap - name: Detect breaking changes run: | @@ -42,7 +42,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: '20' + node-version: '22' - name: Install pnpm uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4 From 275976cd66f1af4dedc6a4dcfdf91a5790be4978 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 5 Jun 2026 08:39:23 -0700 Subject: [PATCH 3/5] Configure pnpm resolution for agents CI --- .github/workflows/detect-breaking-changes.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml index 1f318b396e..0da46605c0 100644 --- a/.github/workflows/detect-breaking-changes.yml +++ b/.github/workflows/detect-breaking-changes.yml @@ -38,6 +38,8 @@ jobs: runs-on: 'ubuntu-latest' name: Detect Agents SDK regressions if: github.repository == 'openai/openai-node' + env: + PNPM_CONFIG_RESOLUTION_MODE: highest steps: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 From 9ccf89558ba7fe2a4e5eed9216470ea06c76cf83 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 5 Jun 2026 08:42:02 -0700 Subject: [PATCH 4/5] Set agents pnpm resolution mode in CI --- .github/workflows/detect-breaking-changes.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml index 0da46605c0..d4292ed9fe 100644 --- a/.github/workflows/detect-breaking-changes.yml +++ b/.github/workflows/detect-breaking-changes.yml @@ -38,8 +38,6 @@ jobs: runs-on: 'ubuntu-latest' name: Detect Agents SDK regressions if: github.repository == 'openai/openai-node' - env: - PNPM_CONFIG_RESOLUTION_MODE: highest steps: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 @@ -71,6 +69,10 @@ jobs: repository: openai/openai-agents-js path: openai-agents-js + - name: Configure pnpm + working-directory: openai-agents-js + run: echo "resolution-mode=highest" >> .npmrc + - name: Link agents packages to local SDKs working-directory: openai-agents-js run: pnpm --filter @openai/agents-core --filter @openai/agents-openai --filter @openai/agents add file:../../../openai-node/dist From 2b5f33e47237e3cbaa00da14e793f9f2ee4b6942 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 5 Jun 2026 08:44:10 -0700 Subject: [PATCH 5/5] Disable agents release-age check in CI --- .github/workflows/detect-breaking-changes.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml index d4292ed9fe..a12505d2ec 100644 --- a/.github/workflows/detect-breaking-changes.yml +++ b/.github/workflows/detect-breaking-changes.yml @@ -71,7 +71,9 @@ jobs: - name: Configure pnpm working-directory: openai-agents-js - run: echo "resolution-mode=highest" >> .npmrc + run: | + echo "resolution-mode=highest" >> .npmrc + perl -0pi -e 's/minimumReleaseAge: 10080/minimumReleaseAge: 0/' pnpm-workspace.yaml - name: Link agents packages to local SDKs working-directory: openai-agents-js