Remove error warning

This commit is contained in:
Tat Dat Duong
2024-10-09 20:40:24 +02:00
parent 8df533b489
commit 26e30ad6af
-18
View File
@@ -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,
@@ -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,
@@ -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,