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/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml index 2ecc70d882..a12505d2ec 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 @@ -69,6 +69,12 @@ jobs: repository: openai/openai-agents-js path: openai-agents-js + - name: Configure pnpm + working-directory: openai-agents-js + 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 run: pnpm --filter @openai/agents-core --filter @openai/agents-openai --filter @openai/agents add file:../../../openai-node/dist 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