Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/detect-breaking-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
node-version: '20'
- name: Install dependencies
run: |
yarn install
./scripts/bootstrap

- name: Detect breaking changes
run: |
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion realtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading