Skip to content

Commit

Permalink
Remove error warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Oct 9, 2024
1 parent 8df533b commit 26e30ad
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions libs/sdk-js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any> = {
input: payload?.input,
config: payload?.config,
Expand Down Expand Up @@ -755,12 +749,6 @@ export class RunsClient extends BaseClient {
assistantId: string,
payload?: RunsCreatePayload,
): Promise<Run> {
if (!!payload?.checkpointId && !!payload?.checkpoint) {
throw new Error(
"Cannot specify both a checkpoint and a checkpoint ID in the payload.",
);
}

const json: Record<string, any> = {
input: payload?.input,
config: payload?.config,
Expand Down Expand Up @@ -829,12 +817,6 @@ export class RunsClient extends BaseClient {
assistantId: string,
payload?: RunsWaitPayload,
): Promise<ThreadState["values"]> {
if (!!payload?.checkpointId && !!payload?.checkpoint) {
throw new Error(
"Cannot specify both a checkpoint and a checkpoint ID in the payload.",
);
}

const json: Record<string, any> = {
input: payload?.input,
config: payload?.config,
Expand Down

0 comments on commit 26e30ad

Please sign in to comment.