Skip to content

Commit eb5f3ae

Browse files
committed
Update interface for replicate.models.versions.list()
The endpoint returns a paginated list rather than an array
1 parent ac5caba commit eb5f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ declare module "replicate" {
315315
model_owner: string,
316316
model_name: string,
317317
options?: { signal?: AbortSignal }
318-
): Promise<ModelVersion[]>;
318+
): Promise<Page<ModelVersion>>;
319319
get(
320320
model_owner: string,
321321
model_name: string,

0 commit comments

Comments
 (0)