豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 44b7ac2

Browse files
authored
Merge pull request #1731 from openai/release-please--branches--master--changes--next--components--openai
release: 6.16.0
2 parents cb3987b + e3059f7 commit 44b7ac2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+539
-95
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- next
7+
8+
jobs:
9+
detect_breaking_changes:
10+
runs-on: 'ubuntu-latest'
11+
name: detect-breaking-changes
12+
if: github.repository == 'openai/openai-node'
13+
steps:
14+
- name: Calculate fetch-depth
15+
run: |
16+
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
17+
18+
- uses: actions/checkout@v4
19+
with:
20+
# Ensure we can check out the pull request base in the script below.
21+
fetch-depth: ${{ env.FETCH_DEPTH }}
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: '20'
27+
- name: Install dependencies
28+
run: |
29+
yarn install
30+
31+
- name: Detect breaking changes
32+
run: |
33+
# Try to check out previous versions of the breaking change detection script. This ensures that
34+
# we still detect breaking changes when entire files and their tests are removed.
35+
git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
36+
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
37+
agents_sdk:
38+
runs-on: 'ubuntu-latest'
39+
name: Detect Agents SDK regressions
40+
if: github.repository == 'openai/openai-node'
41+
steps:
42+
- name: Set up Node
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: '20'
46+
47+
- name: Install pnpm
48+
uses: pnpm/action-setup@v4
49+
with:
50+
version: 10.25.0
51+
run_install: false
52+
53+
# Setup this sdk
54+
- uses: actions/checkout@v4
55+
with:
56+
path: openai-node
57+
58+
- name: Bootstrap
59+
working-directory: openai-node
60+
run: ./scripts/bootstrap
61+
62+
- name: Build
63+
working-directory: openai-node
64+
run: ./scripts/build
65+
66+
# Setup the agents packages
67+
- uses: actions/checkout@v4
68+
with:
69+
repository: openai/openai-agents-js
70+
path: openai-agents-js
71+
72+
- name: Link agents packages to local SDKs
73+
working-directory: openai-agents-js
74+
run: pnpm --filter @openai/agents-core --filter @openai/agents-openai --filter @openai/agents add file:../../../openai-node/dist
75+
76+
- name: Install dependencies
77+
working-directory: openai-agents-js
78+
run: pnpm install
79+
80+
- name: Build all packages
81+
working-directory: openai-agents-js
82+
run: pnpm build
83+
84+
- name: Run linter
85+
working-directory: openai-agents-js
86+
run: pnpm lint
87+
88+
- name: Type-check docs scripts
89+
working-directory: openai-agents-js
90+
run: pnpm docs:scripts:check

.release-please-manifest.json

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 136
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-75926226b642ebb2cb415694da9dff35e8ab40145ac1b791cefb82a83809db4d.yml
3-
openapi_spec_hash: 6a0e391b0ba5747b6b4a3e5fe21de4da
4-
config_hash: adcf23ecf5f84d3cadf1d71e82ec636a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9442fa9212dd61aac2bb0edd19744bee381e75888712f9098bc6ebb92c52b557.yml
3+
openapi_spec_hash: f87823d164b7a8f72a42eba04e482a99
4+
config_hash: ad7136f7366fddec432ec378939e58a7

CHANGELOG.md

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

3+
## 6.16.0 (2026-01-09)
4+
5+
Full Changelog: [v6.15.0...v6.16.0](https://github.com/openai/openai-node/compare/v6.15.0...v6.16.0)
6+
7+
### Features
8+
9+
* **api:** add new Response completed_at prop ([ca40534](https://github.com/openai/openai-node/commit/ca40534778311def52bc7dbbab043d925cdaf847))
10+
* **ci:** add breaking change detection workflow ([a6f3dea](https://github.com/openai/openai-node/commit/a6f3deaf89ea0ef85cc57e1150032bb6b807c3b9))
11+
12+
13+
### Chores
14+
15+
* break long lines in snippets into multiline ([80dee2f](https://github.com/openai/openai-node/commit/80dee2fe64d1b13f181bd482b31eb06fd6c5f3f4))
16+
* **internal:** codegen related update ([b2fac3e](https://github.com/openai/openai-node/commit/b2fac3ecdc3aecc3303c26304c4c94deda061edb))
17+
318
## 6.15.0 (2025-12-19)
419

520
Full Changelog: [v6.14.0...v6.15.0](https://github.com/openai/openai-node/compare/v6.14.0...v6.15.0)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 OpenAI
189+
Copyright 2026 OpenAI
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ await client.files.create({ file: fs.createReadStream('input.jsonl'), purpose: '
111111
await client.files.create({ file: new File(['my bytes'], 'input.jsonl'), purpose: 'fine-tune' });
112112

113113
// You can also pass a `fetch` `Response`:
114-
await client.files.create({ file: await fetch('https://somesite/input.jsonl'), purpose: 'fine-tune' });
114+
await client.files.create({
115+
file: await fetch('https://somesite/input.jsonl'),
116+
purpose: 'fine-tune',
117+
});
115118

116119
// Finally, if none of the above are convenient, you can use our `toFile` helper:
117120
await client.files.create({

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": "6.15.0",
3+
"version": "6.16.0",
44
"exports": {
55
".": "./index.ts",
66
"./helpers/zod": "./helpers/zod.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": "6.15.0",
3+
"version": "6.16.0",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <support@openai.com>",
66
"types": "dist/index.d.ts",

src/resources/audio/speech.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export interface SpeechCreateParams {
4646
model: (string & {}) | SpeechModel;
4747

4848
/**
49-
* The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
50-
* `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
51-
* `verse`. Previews of the voices are available in the
49+
* The voice to use when generating the audio. Supported built-in voices are
50+
* `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
51+
* `shimmer`, `verse`, `marin`, and `cedar`. Previews of the voices are available
52+
* in the
5253
* [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
5354
*/
5455
voice:

src/resources/chat/completions/completions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,9 @@ export interface ChatCompletionAudioParam {
486486
format: 'wav' | 'aac' | 'mp3' | 'flac' | 'opus' | 'pcm16';
487487

488488
/**
489-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`,
490-
* `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`.
489+
* The voice the model uses to respond. Supported built-in voices are `alloy`,
490+
* `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
491+
* `marin`, and `cedar`.
491492
*/
492493
voice:
493494
| (string & {})

0 commit comments

Comments
 (0)