Skip to content

Commit 985b9fa

Browse files
Merge branch 'master' into kwhinnery/jsr_exports
2 parents 6f3ad43 + 53149de commit 985b9fa

File tree

7 files changed

+27
-5
lines changed

7 files changed

+27
-5
lines changed

.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.79.1"
2+
".": "4.79.2"
33
}

CHANGELOG.md

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

3+
## 4.79.2 (2025-01-21)
4+
5+
Full Changelog: [v4.79.1...v4.79.2](https://github.com/openai/openai-node/compare/v4.79.1...v4.79.2)
6+
7+
### Chores
8+
9+
* **internal:** add test ([#1270](https://github.com/openai/openai-node/issues/1270)) ([b7c2d3d](https://github.com/openai/openai-node/commit/b7c2d3d9abd315f1452a578b0fd0d82e6ac4ff60))
10+
11+
12+
### Documentation
13+
14+
* **readme:** fix Realtime API example link ([#1272](https://github.com/openai/openai-node/issues/1272)) ([d0653c7](https://github.com/openai/openai-node/commit/d0653c7fef48360d137a7411dfdfb95d477cdbc5))
15+
316
## 4.79.1 (2025-01-17)
417

518
Full Changelog: [v4.79.0...v4.79.1](https://github.com/openai/openai-node/compare/v4.79.0...v4.79.1)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ rt.socket.addEventListener('open', () => {
153153
});
154154
```
155155

156-
A full example can be found [here](https://github.com/openai/openai-node/blob/master/examples/realtime/web.ts).
156+
A full example can be found [here](https://github.com/openai/openai-node/blob/master/examples/realtime/websocket.ts).
157157

158158
### Realtime error handling
159159

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openai/openai",
3-
"version": "4.79.1",
3+
"version": "4.79.2",
44
"exports": {
55
".": "./index.ts",
66
"./beta/realtime/websocket": "./beta/realtime/websocket.ts"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "4.79.1",
3+
"version": "4.79.2",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '4.79.1'; // x-release-please-version
1+
export const VERSION = '4.79.2'; // x-release-please-version

tests/index.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ describe('instantiate client', () => {
9696
expect(response).toEqual({ url: 'http://localhost:5000/foo', custom: true });
9797
});
9898

99+
test('explicit global fetch', async () => {
100+
// make sure the global fetch type is assignable to our Fetch type
101+
const client = new OpenAI({
102+
baseURL: 'http://localhost:5000/',
103+
apiKey: 'My API Key',
104+
fetch: defaultFetch,
105+
});
106+
});
107+
99108
test('custom signal', async () => {
100109
const client = new OpenAI({
101110
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',

0 commit comments

Comments
 (0)