This commit is contained in:
Tat Dat Duong
2025-03-19 20:54:15 +01:00
parent 0cb1893475
commit 1f7a380548
+6 -8
View File
@@ -514,15 +514,13 @@ export class ThreadsClient<
};
if (payload?.fromSupersteps) {
json.supersteps = {
supersteps: payload.fromSupersteps.map((s) => ({
updates: s.updates.map((u) => ({
values: u.values,
command: u.command,
as_node: u.asNode,
})),
json.supersteps = payload.fromSupersteps.map((s) => ({
updates: s.updates.map((u) => ({
values: u.values,
command: u.command,
as_node: u.asNode,
})),
};
}));
return this.fetch<Thread<TStateType>>(`/threads/state/bulk`, {
method: "POST",