Skip to content

Commit 7b95954

Browse files
Merge pull request #1548 from openai/release-please--branches--master--changes--next--components--openai
release: 5.5.0
2 parents 079c2ab + 52726ae commit 7b95954

File tree

10 files changed

+52
-59
lines changed

10 files changed

+52
-59
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.4.0"
2+
".": "5.5.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9e41d2d5471d2c28bff0d616f4476f5b0e6c541ef4cb51bdaaef5fdf5e13c8b2.yml
33
openapi_spec_hash: 86f765e18d00e32cf2ce9db7ab84d946
4-
config_hash: fd2af1d5eff0995bb7dc02ac9a34851d
4+
config_hash: dc5515e257676a27cb1ace1784aa92b3

CHANGELOG.md

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

3+
## 5.5.0 (2025-06-16)
4+
5+
Full Changelog: [v5.4.0...v5.5.0](https://github.com/openai/openai-node/compare/v5.4.0...v5.5.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([ab6b57c](https://github.com/openai/openai-node/commit/ab6b57c241dc7c57e411fae572842da801e9828b))
10+
311
## 5.4.0 (2025-06-16)
412

513
Full Changelog: [v5.3.0...v5.4.0](https://github.com/openai/openai-node/compare/v5.3.0...v5.4.0)

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Types:
259259
Methods:
260260

261261
- <code title="post /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions">client.fineTuning.checkpoints.permissions.<a href="./src/resources/fine-tuning/checkpoints/permissions.ts">create</a>(fineTunedModelCheckpoint, { ...params }) -> PermissionCreateResponsesPage</code>
262-
- <code title="get /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions">client.fineTuning.checkpoints.permissions.<a href="./src/resources/fine-tuning/checkpoints/permissions.ts">retrieve</a>(fineTunedModelCheckpoint, { ...params }) -> PermissionRetrieveResponse</code>
262+
- <code title="get /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions">client.fineTuning.checkpoints.permissions.<a href="./src/resources/fine-tuning/checkpoints/permissions.ts">retrieve</a>(fineTunedModelCheckpoint, { ...params }) -> PermissionRetrieveResponsesPage</code>
263263
- <code title="delete /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}">client.fineTuning.checkpoints.permissions.<a href="./src/resources/fine-tuning/checkpoints/permissions.ts">delete</a>(permissionID, { ...params }) -> PermissionDeleteResponse</code>
264264

265265
## Alpha

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.4.0",
3+
"version": "5.5.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": "5.4.0",
3+
"version": "5.5.0",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",

src/resources/fine-tuning/checkpoints/checkpoints.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
PermissionDeleteResponse,
1111
PermissionRetrieveParams,
1212
PermissionRetrieveResponse,
13+
PermissionRetrieveResponsesPage,
1314
Permissions,
1415
} from './permissions';
1516

@@ -26,6 +27,7 @@ export declare namespace Checkpoints {
2627
type PermissionRetrieveResponse as PermissionRetrieveResponse,
2728
type PermissionDeleteResponse as PermissionDeleteResponse,
2829
type PermissionCreateResponsesPage as PermissionCreateResponsesPage,
30+
type PermissionRetrieveResponsesPage as PermissionRetrieveResponsesPage,
2931
type PermissionCreateParams as PermissionCreateParams,
3032
type PermissionRetrieveParams as PermissionRetrieveParams,
3133
type PermissionDeleteParams as PermissionDeleteParams,

src/resources/fine-tuning/checkpoints/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export {
1010
type PermissionRetrieveParams,
1111
type PermissionDeleteParams,
1212
type PermissionCreateResponsesPage,
13+
type PermissionRetrieveResponsesPage,
1314
} from './permissions';

src/resources/fine-tuning/checkpoints/permissions.ts

Lines changed: 35 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { APIResource } from '../../../core/resource';
44
import { APIPromise } from '../../../core/api-promise';
5-
import { Page, PagePromise } from '../../../core/pagination';
5+
import { CursorPage, type CursorPageParams, Page, PagePromise } from '../../../core/pagination';
66
import { RequestOptions } from '../../../internal/request-options';
77
import { path } from '../../../internal/utils/path';
88

@@ -44,21 +44,24 @@ export class Permissions extends APIResource {
4444
*
4545
* @example
4646
* ```ts
47-
* const permission =
48-
* await client.fineTuning.checkpoints.permissions.retrieve(
49-
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
50-
* );
47+
* // Automatically fetches more pages as needed.
48+
* for await (const permissionRetrieveResponse of client.fineTuning.checkpoints.permissions.retrieve(
49+
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
50+
* )) {
51+
* // ...
52+
* }
5153
* ```
5254
*/
5355
retrieve(
5456
fineTunedModelCheckpoint: string,
5557
query: PermissionRetrieveParams | null | undefined = {},
5658
options?: RequestOptions,
57-
): APIPromise<PermissionRetrieveResponse> {
58-
return this._client.get(path`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, {
59-
query,
60-
...options,
61-
});
59+
): PagePromise<PermissionRetrieveResponsesPage, PermissionRetrieveResponse> {
60+
return this._client.getAPIList(
61+
path`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`,
62+
CursorPage<PermissionRetrieveResponse>,
63+
{ query, ...options },
64+
);
6265
}
6366

6467
/**
@@ -95,6 +98,8 @@ export class Permissions extends APIResource {
9598
// Note: no pagination actually occurs yet, this is for forwards-compatibility.
9699
export type PermissionCreateResponsesPage = Page<PermissionCreateResponse>;
97100

101+
export type PermissionRetrieveResponsesPage = CursorPage<PermissionRetrieveResponse>;
102+
98103
/**
99104
* The `checkpoint.permission` object represents a permission for a fine-tuned
100105
* model checkpoint.
@@ -121,44 +126,30 @@ export interface PermissionCreateResponse {
121126
project_id: string;
122127
}
123128

129+
/**
130+
* The `checkpoint.permission` object represents a permission for a fine-tuned
131+
* model checkpoint.
132+
*/
124133
export interface PermissionRetrieveResponse {
125-
data: Array<PermissionRetrieveResponse.Data>;
126-
127-
has_more: boolean;
128-
129-
object: 'list';
130-
131-
first_id?: string | null;
132-
133-
last_id?: string | null;
134-
}
135-
136-
export namespace PermissionRetrieveResponse {
137134
/**
138-
* The `checkpoint.permission` object represents a permission for a fine-tuned
139-
* model checkpoint.
135+
* The permission identifier, which can be referenced in the API endpoints.
140136
*/
141-
export interface Data {
142-
/**
143-
* The permission identifier, which can be referenced in the API endpoints.
144-
*/
145-
id: string;
137+
id: string;
146138

147-
/**
148-
* The Unix timestamp (in seconds) for when the permission was created.
149-
*/
150-
created_at: number;
139+
/**
140+
* The Unix timestamp (in seconds) for when the permission was created.
141+
*/
142+
created_at: number;
151143

152-
/**
153-
* The object type, which is always "checkpoint.permission".
154-
*/
155-
object: 'checkpoint.permission';
144+
/**
145+
* The object type, which is always "checkpoint.permission".
146+
*/
147+
object: 'checkpoint.permission';
156148

157-
/**
158-
* The project identifier that the permission is for.
159-
*/
160-
project_id: string;
161-
}
149+
/**
150+
* The project identifier that the permission is for.
151+
*/
152+
project_id: string;
162153
}
163154

164155
export interface PermissionDeleteResponse {
@@ -185,17 +176,7 @@ export interface PermissionCreateParams {
185176
project_ids: Array<string>;
186177
}
187178

188-
export interface PermissionRetrieveParams {
189-
/**
190-
* Identifier for the last permission ID from the previous pagination request.
191-
*/
192-
after?: string;
193-
194-
/**
195-
* Number of permissions to retrieve.
196-
*/
197-
limit?: number;
198-
179+
export interface PermissionRetrieveParams extends CursorPageParams {
199180
/**
200181
* The order in which to retrieve permissions.
201182
*/
@@ -220,6 +201,7 @@ export declare namespace Permissions {
220201
type PermissionRetrieveResponse as PermissionRetrieveResponse,
221202
type PermissionDeleteResponse as PermissionDeleteResponse,
222203
type PermissionCreateResponsesPage as PermissionCreateResponsesPage,
204+
type PermissionRetrieveResponsesPage as PermissionRetrieveResponsesPage,
223205
type PermissionCreateParams as PermissionCreateParams,
224206
type PermissionRetrieveParams as PermissionRetrieveParams,
225207
type PermissionDeleteParams as PermissionDeleteParams,

src/version.ts

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

0 commit comments

Comments
 (0)