diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index eb39d5a61..c17e15ed5 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -664,12 +664,6 @@ export class RunsClient extends BaseClient { event: StreamEvent; data: any; }> { - if (!!payload?.checkpointId && !!payload?.checkpoint) { - throw new Error( - "Cannot specify both a checkpoint and a checkpoint ID in the payload.", - ); - } - const json: Record = { input: payload?.input, config: payload?.config, @@ -755,12 +749,6 @@ export class RunsClient extends BaseClient { assistantId: string, payload?: RunsCreatePayload, ): Promise { - if (!!payload?.checkpointId && !!payload?.checkpoint) { - throw new Error( - "Cannot specify both a checkpoint and a checkpoint ID in the payload.", - ); - } - const json: Record = { input: payload?.input, config: payload?.config, @@ -829,12 +817,6 @@ export class RunsClient extends BaseClient { assistantId: string, payload?: RunsWaitPayload, ): Promise { - if (!!payload?.checkpointId && !!payload?.checkpoint) { - throw new Error( - "Cannot specify both a checkpoint and a checkpoint ID in the payload.", - ); - } - const json: Record = { input: payload?.input, config: payload?.config,