Skip to content

Commit aaa859e

Browse files
Merge pull request #1524 from openai/release-please--branches--master--changes--next--components--openai
release: 5.0.2
2 parents eebb832 + 75e8643 commit aaa859e

File tree

17 files changed

+114
-68
lines changed

17 files changed

+114
-68
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-
".": "5.0.1"
2+
".": "5.0.2"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d4bcffecf0cdadf746faa6708ed1ec81fac451f9b857deabbab26f0a343b9314.yml
3-
openapi_spec_hash: 7c54a18b4381248bda7cc34c52142615
4-
config_hash: e618aa8ff61aea826540916336de65a6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2bcc845d8635bf93ddcf9ee723af4d7928248412a417bee5fc10d863a1e13867.yml
3+
openapi_spec_hash: 865230cb3abeb01bd85de05891af23c4
4+
config_hash: ed1e6b3c5f93d12b80d31167f55c557c

CHANGELOG.md

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

3+
## 5.0.2 (2025-06-02)
4+
5+
Full Changelog: [v5.0.1...v5.0.2](https://github.com/openai/openai-node/compare/v5.0.1...v5.0.2)
6+
7+
### Bug Fixes
8+
9+
* **api:** Fix evals and code interpreter interfaces ([992a9d8](https://github.com/openai/openai-node/commit/992a9d84fe412d96496b11b7a6be5c927f78db6c))
10+
11+
12+
### Chores
13+
14+
* **deps:** bump eslint-plugin-prettier ([1428a8b](https://github.com/openai/openai-node/commit/1428a8b4f82e79695c2cbed5e12ca0da4958423b))
15+
* **internal:** codegen related update ([a65428f](https://github.com/openai/openai-node/commit/a65428fc81e05f681eab806e7efc6ad26062221b))
16+
317
## 5.0.1 (2025-05-29)
418

519
Full Changelog: [v5.0.0...v5.0.1](https://github.com/openai/openai-node/compare/v5.0.0...v5.0.1)

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ Methods:
709709
- <code title="post /responses">client.responses.<a href="./src/resources/responses/responses.ts">create</a>({ ...params }) -> Response</code>
710710
- <code title="get /responses/{response_id}">client.responses.<a href="./src/resources/responses/responses.ts">retrieve</a>(responseID, { ...params }) -> Response</code>
711711
- <code title="delete /responses/{response_id}">client.responses.<a href="./src/resources/responses/responses.ts">delete</a>(responseID) -> void</code>
712-
- <code title="post /responses/{response_id}/cancel">client.responses.<a href="./src/resources/responses/responses.ts">cancel</a>(responseID) -> void</code>
712+
- <code title="post /responses/{response_id}/cancel">client.responses.<a href="./src/resources/responses/responses.ts">cancel</a>(responseID) -> Response</code>
713713

714714
## InputItems
715715

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const config: JestConfigWithTsJest = {
1515
'<rootDir>/dist/',
1616
'<rootDir>/deno/',
1717
'<rootDir>/deno_tests/',
18+
'<rootDir>/packages/',
1819
],
1920
testPathIgnorePatterns: ['scripts'],
2021
// prettierPath: require.resolve('prettier-2'),

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": "5.0.1",
3+
"version": "5.0.2",
44
"exports": {
55
".": "./index.ts",
66
"./helpers/zod": "./helpers/zod.ts",

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -35,7 +35,7 @@
3535
"@typescript-eslint/eslint-plugin": "8.31.1",
3636
"@typescript-eslint/parser": "8.31.1",
3737
"eslint": "^9.20.1",
38-
"eslint-plugin-prettier": "^5.2.3",
38+
"eslint-plugin-prettier": "^5.4.1",
3939
"eslint-plugin-unused-imports": "^4.1.4",
4040
"execa": "^5.1.1",
4141
"fast-check": "^3.22.0",
@@ -51,9 +51,6 @@
5151
"ws": "^8.18.0",
5252
"zod": "^3.23.8"
5353
},
54-
"resolutions": {
55-
"synckit": "0.8.8"
56-
},
5754
"imports": {
5855
"openai": ".",
5956
"openai/*": "./src/*"

src/resources/audio/transcriptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export namespace TranscriptionTextDeltaEvent {
199199
/**
200200
* The bytes that were used to generate the log probability.
201201
*/
202-
bytes?: Array<unknown>;
202+
bytes?: Array<number>;
203203

204204
/**
205205
* The log probability of the token.
@@ -244,7 +244,7 @@ export namespace TranscriptionTextDoneEvent {
244244
/**
245245
* The bytes that were used to generate the log probability.
246246
*/
247-
bytes?: Array<unknown>;
247+
bytes?: Array<number>;
248248

249249
/**
250250
* The log probability of the token.

src/resources/chat/completions/completions.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ export interface ChatCompletion {
280280
* utilize scale tier credits until they are exhausted.
281281
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
282282
* be processed using the default service tier with a lower uptime SLA and no
283-
* latency guarentee.
283+
* latency guarantee.
284284
* - If set to 'default', the request will be processed using the default service
285-
* tier with a lower uptime SLA and no latency guarentee.
285+
* tier with a lower uptime SLA and no latency guarantee.
286286
* - If set to 'flex', the request will be processed with the Flex Processing
287287
* service tier.
288288
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
@@ -531,9 +531,9 @@ export interface ChatCompletionChunk {
531531
* utilize scale tier credits until they are exhausted.
532532
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
533533
* be processed using the default service tier with a lower uptime SLA and no
534-
* latency guarentee.
534+
* latency guarantee.
535535
* - If set to 'default', the request will be processed using the default service
536-
* tier with a lower uptime SLA and no latency guarentee.
536+
* tier with a lower uptime SLA and no latency guarantee.
537537
* - If set to 'flex', the request will be processed with the Flex Processing
538538
* service tier.
539539
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
@@ -1453,9 +1453,9 @@ export interface ChatCompletionCreateParamsBase {
14531453
* utilize scale tier credits until they are exhausted.
14541454
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
14551455
* be processed using the default service tier with a lower uptime SLA and no
1456-
* latency guarentee.
1456+
* latency guarantee.
14571457
* - If set to 'default', the request will be processed using the default service
1458-
* tier with a lower uptime SLA and no latency guarentee.
1458+
* tier with a lower uptime SLA and no latency guarantee.
14591459
* - If set to 'flex', the request will be processed with the Flex Processing
14601460
* service tier.
14611461
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).

src/resources/fine-tuning/alpha/graders.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export class Graders extends APIResource {
2020
* type: 'string_check',
2121
* },
2222
* model_sample: 'model_sample',
23-
* reference_answer: 'string',
2423
* });
2524
* ```
2625
*/
@@ -134,14 +133,20 @@ export interface GraderRunParams {
134133
| GraderModelsAPI.MultiGrader;
135134

136135
/**
137-
* The model sample to be evaluated.
136+
* The model sample to be evaluated. This value will be used to populate the
137+
* `sample` namespace. See
138+
* [the guide](https://platform.openai.com/docs/guides/graders) for more details.
139+
* The `output_json` variable will be populated if the model sample is a valid JSON
140+
* string.
138141
*/
139142
model_sample: string;
140143

141144
/**
142-
* The reference answer for the evaluation.
145+
* The dataset item provided to the grader. This will be used to populate the
146+
* `item` namespace. See
147+
* [the guide](https://platform.openai.com/docs/guides/graders) for more details.
143148
*/
144-
reference_answer: string | unknown | Array<unknown> | number;
149+
item?: unknown;
145150
}
146151

147152
export interface GraderValidateParams {

0 commit comments

Comments
 (0)