Skip to content

Commit 3fea6bf

Browse files
chore: sync repo
1 parent 7239db0 commit 3fea6bf

40 files changed

+440
-2196
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
- update-specs
76
pull_request:
87
branches:
98
- master
@@ -88,6 +87,7 @@ jobs:
8887
ecosystem_tests:
8988
name: ecosystem tests (v${{ matrix.node-version }})
9089
runs-on: ubuntu-latest
90+
if: github.repository == 'openai/openai-node'
9191
timeout-minutes: 20
9292
strategy:
9393
fail-fast: false

.github/workflows/create-releases.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/publish-jsr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to JSR in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-jsr.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to JSR in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-jsr.yml
34
name: Publish JSR
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to NPM in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-npm.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to NPM in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-npm.yml
34
name: Publish NPM
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ jobs:
1919
run: |
2020
bash ./bin/check-release-environment
2121
env:
22-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2322
NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }}
2423

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.89.1"
2+
".": "4.87.3"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5ad6884898c07591750dde560118baf7074a59aecd1f367f930c5e42b04e848a.yml
1+
configured_endpoints: 81
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-c8579861bc21d4d2155a5b9e8e7d54faee8083730673c4d32cbbe573d7fb4116.yml

CHANGELOG.md

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,5 @@
11
# Changelog
22

3-
## 4.89.1 (2025-03-26)
4-
5-
Full Changelog: [v4.89.0...v4.89.1](https://github.com/openai/openai-node/compare/v4.89.0...v4.89.1)
6-
7-
### Bug Fixes
8-
9-
* avoid type error in certain environments ([#1413](https://github.com/openai/openai-node/issues/1413)) ([d3f6f8f](https://github.com/openai/openai-node/commit/d3f6f8f9c7511a98cc5795756fee49a30e44d485))
10-
* **client:** remove duplicate types ([#1410](https://github.com/openai/openai-node/issues/1410)) ([338878b](https://github.com/openai/openai-node/commit/338878bf484dac5a4fadf50592b1f8d1045cd4b6))
11-
* **exports:** add missing type exports ([#1417](https://github.com/openai/openai-node/issues/1417)) ([2d15ada](https://github.com/openai/openai-node/commit/2d15ada0e0d81a4e0d097dddbe99be2222c4c0ef))
12-
13-
14-
### Chores
15-
16-
* **internal:** version bump ([#1408](https://github.com/openai/openai-node/issues/1408)) ([9c0949a](https://github.com/openai/openai-node/commit/9c0949a93c3e181d327f820dbc2a4b0ad77258e9))
17-
18-
## 4.89.0 (2025-03-20)
19-
20-
Full Changelog: [v4.88.0...v4.89.0](https://github.com/openai/openai-node/compare/v4.88.0...v4.89.0)
21-
22-
### Features
23-
24-
* add audio helpers ([ea1b6b4](https://github.com/openai/openai-node/commit/ea1b6b4ef38813af568b3662037519da9404b80e))
25-
* **api:** new models for TTS, STT, + new audio features for Realtime ([#1407](https://github.com/openai/openai-node/issues/1407)) ([142933a](https://github.com/openai/openai-node/commit/142933ae70d06045dbf4661cd72c7fa35ae7903d))
26-
27-
28-
### Chores
29-
30-
* **internal:** version bump ([#1400](https://github.com/openai/openai-node/issues/1400)) ([6838ab4](https://github.com/openai/openai-node/commit/6838ab4268c7c0e083e7be21ef1a51bdea0f0b57))
31-
32-
## 4.88.0 (2025-03-19)
33-
34-
Full Changelog: [v4.87.4...v4.88.0](https://github.com/openai/openai-node/compare/v4.87.4...v4.88.0)
35-
36-
### Features
37-
38-
* **api:** o1-pro now available through the API ([#1398](https://github.com/openai/openai-node/issues/1398)) ([616a7e9](https://github.com/openai/openai-node/commit/616a7e90e764882cd749a65af8cc6ae8734fc80d))
39-
40-
41-
### Chores
42-
43-
* **exports:** cleaner resource index imports ([#1396](https://github.com/openai/openai-node/issues/1396)) ([26b0856](https://github.com/openai/openai-node/commit/26b0856cd63846c34b75895a1ea42ceec7908c1a))
44-
* **exports:** stop using path fallbacks ([#1397](https://github.com/openai/openai-node/issues/1397)) ([d1479c2](https://github.com/openai/openai-node/commit/d1479c23aff68dd46c73fd31896dd2298a6bf140))
45-
* **internal:** version bump ([#1393](https://github.com/openai/openai-node/issues/1393)) ([7f16c3a](https://github.com/openai/openai-node/commit/7f16c3aa7b1ab36541219c5a0f93fc518733d0e3))
46-
47-
## 4.87.4 (2025-03-18)
48-
49-
Full Changelog: [v4.87.3...v4.87.4](https://github.com/openai/openai-node/compare/v4.87.3...v4.87.4)
50-
51-
### Bug Fixes
52-
53-
* **api:** correct some Responses types ([#1391](https://github.com/openai/openai-node/issues/1391)) ([af45876](https://github.com/openai/openai-node/commit/af458766ac721fb6cf18e7d78c458506c8bfc4e1))
54-
* **types:** ignore missing `id` in responses pagination ([1b9d20e](https://github.com/openai/openai-node/commit/1b9d20e71f5afbd4999f1999fe4810175476c5d2))
55-
* **types:** improve responses type names ([#1392](https://github.com/openai/openai-node/issues/1392)) ([164f476](https://github.com/openai/openai-node/commit/164f47606b41fd3e2850f8209eb1c6e2996a81ff))
56-
57-
58-
### Chores
59-
60-
* add missing type alias exports ([#1390](https://github.com/openai/openai-node/issues/1390)) ([16c5e22](https://github.com/openai/openai-node/commit/16c5e2261c8c1a0ba96c2d5f475e8b1bc67387d7))
61-
* **internal:** add back release workflow ([dddf29b](https://github.com/openai/openai-node/commit/dddf29bd914a02d4586b239ec06217389a4409f9))
62-
* **internal:** remove CI condition ([#1381](https://github.com/openai/openai-node/issues/1381)) ([ef17981](https://github.com/openai/openai-node/commit/ef17981a0bd6b3e971986ece829c5d260d7392d4))
63-
* **internal:** run CI on update-specs branch ([9fc2130](https://github.com/openai/openai-node/commit/9fc2130b74a5919a3bbd41926903bdb310de4446))
64-
* **internal:** update release workflows ([90b77d0](https://github.com/openai/openai-node/commit/90b77d09c04d21487aa38fe775c79ae632136813))
65-
663
## 4.87.3 (2025-03-11)
674

685
Full Changelog: [v4.87.2...v4.87.3](https://github.com/openai/openai-node/compare/v4.87.2...v4.87.3)

api.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/shared.ts">AllModels</a></code>
65
- <code><a href="./src/resources/shared.ts">ChatModel</a></code>
76
- <code><a href="./src/resources/shared.ts">ComparisonFilter</a></code>
87
- <code><a href="./src/resources/shared.ts">CompoundFilter</a></code>
@@ -15,7 +14,6 @@ Types:
1514
- <code><a href="./src/resources/shared.ts">ResponseFormatJSONObject</a></code>
1615
- <code><a href="./src/resources/shared.ts">ResponseFormatJSONSchema</a></code>
1716
- <code><a href="./src/resources/shared.ts">ResponseFormatText</a></code>
18-
- <code><a href="./src/resources/shared.ts">ResponsesModel</a></code>
1917

2018
# Completions
2119

@@ -142,11 +140,7 @@ Types:
142140
Types:
143141

144142
- <code><a href="./src/resources/audio/transcriptions.ts">Transcription</a></code>
145-
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionInclude</a></code>
146143
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionSegment</a></code>
147-
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionStreamEvent</a></code>
148-
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionTextDeltaEvent</a></code>
149-
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionTextDoneEvent</a></code>
150144
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionVerbose</a></code>
151145
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionWord</a></code>
152146
- <code><a href="./src/resources/audio/transcriptions.ts">TranscriptionCreateResponse</a></code>
@@ -310,9 +304,7 @@ Types:
310304
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemDeleteEvent</a></code>
311305
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemDeletedEvent</a></code>
312306
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemInputAudioTranscriptionCompletedEvent</a></code>
313-
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemInputAudioTranscriptionDeltaEvent</a></code>
314307
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemInputAudioTranscriptionFailedEvent</a></code>
315-
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemRetrieveEvent</a></code>
316308
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemTruncateEvent</a></code>
317309
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemTruncatedEvent</a></code>
318310
- <code><a href="./src/resources/beta/realtime/realtime.ts">ConversationItemWithReference</a></code>
@@ -349,8 +341,6 @@ Types:
349341
- <code><a href="./src/resources/beta/realtime/realtime.ts">SessionCreatedEvent</a></code>
350342
- <code><a href="./src/resources/beta/realtime/realtime.ts">SessionUpdateEvent</a></code>
351343
- <code><a href="./src/resources/beta/realtime/realtime.ts">SessionUpdatedEvent</a></code>
352-
- <code><a href="./src/resources/beta/realtime/realtime.ts">TranscriptionSessionUpdate</a></code>
353-
- <code><a href="./src/resources/beta/realtime/realtime.ts">TranscriptionSessionUpdatedEvent</a></code>
354344

355345
### Sessions
356346

@@ -363,16 +353,6 @@ Methods:
363353

364354
- <code title="post /realtime/sessions">client.beta.realtime.sessions.<a href="./src/resources/beta/realtime/sessions.ts">create</a>({ ...params }) -> SessionCreateResponse</code>
365355

366-
### TranscriptionSessions
367-
368-
Types:
369-
370-
- <code><a href="./src/resources/beta/realtime/transcription-sessions.ts">TranscriptionSession</a></code>
371-
372-
Methods:
373-
374-
- <code title="post /realtime/transcription_sessions">client.beta.realtime.transcriptionSessions.<a href="./src/resources/beta/realtime/transcription-sessions.ts">create</a>({ ...params }) -> TranscriptionSession</code>
375-
376356
## Assistants
377357

378358
Types:
@@ -568,8 +548,6 @@ Types:
568548
- <code><a href="./src/resources/responses/responses.ts">ResponseCodeInterpreterToolCall</a></code>
569549
- <code><a href="./src/resources/responses/responses.ts">ResponseCompletedEvent</a></code>
570550
- <code><a href="./src/resources/responses/responses.ts">ResponseComputerToolCall</a></code>
571-
- <code><a href="./src/resources/responses/responses.ts">ResponseComputerToolCallOutputItem</a></code>
572-
- <code><a href="./src/resources/responses/responses.ts">ResponseComputerToolCallOutputScreenshot</a></code>
573551
- <code><a href="./src/resources/responses/responses.ts">ResponseContent</a></code>
574552
- <code><a href="./src/resources/responses/responses.ts">ResponseContentPartAddedEvent</a></code>
575553
- <code><a href="./src/resources/responses/responses.ts">ResponseContentPartDoneEvent</a></code>
@@ -586,8 +564,6 @@ Types:
586564
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionCallArgumentsDeltaEvent</a></code>
587565
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionCallArgumentsDoneEvent</a></code>
588566
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionToolCall</a></code>
589-
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionToolCallItem</a></code>
590-
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionToolCallOutputItem</a></code>
591567
- <code><a href="./src/resources/responses/responses.ts">ResponseFunctionWebSearch</a></code>
592568
- <code><a href="./src/resources/responses/responses.ts">ResponseInProgressEvent</a></code>
593569
- <code><a href="./src/resources/responses/responses.ts">ResponseIncludable</a></code>
@@ -599,9 +575,7 @@ Types:
599575
- <code><a href="./src/resources/responses/responses.ts">ResponseInputImage</a></code>
600576
- <code><a href="./src/resources/responses/responses.ts">ResponseInputItem</a></code>
601577
- <code><a href="./src/resources/responses/responses.ts">ResponseInputMessageContentList</a></code>
602-
- <code><a href="./src/resources/responses/responses.ts">ResponseInputMessageItem</a></code>
603578
- <code><a href="./src/resources/responses/responses.ts">ResponseInputText</a></code>
604-
- <code><a href="./src/resources/responses/responses.ts">ResponseItem</a></code>
605579
- <code><a href="./src/resources/responses/responses.ts">ResponseOutputAudio</a></code>
606580
- <code><a href="./src/resources/responses/responses.ts">ResponseOutputItem</a></code>
607581
- <code><a href="./src/resources/responses/responses.ts">ResponseOutputItemAddedEvent</a></code>
@@ -642,4 +616,4 @@ Types:
642616

643617
Methods:
644618

645-
- <code title="get /responses/{response_id}/input_items">client.responses.inputItems.<a href="./src/resources/responses/input-items.ts">list</a>(responseId, { ...params }) -> ResponseItemsPage</code>
619+
- <code title="get /responses/{response_id}/input_items">client.responses.inputItems.<a href="./src/resources/responses/input-items.ts">list</a>(responseId, { ...params }) -> ResponseItemListDataPage</code>

examples/speech-to-text.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)