Skip to content

Commit

Permalink
adding clean thread api
Browse files Browse the repository at this point in the history
Signed-off-by: James <[email protected]>
  • Loading branch information
namchuai committed Jun 20, 2024
1 parent 7ed50a9 commit 3b90d14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/resources/beta/threads/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ export class Threads extends APIResource {
});
}

/**
* Clean up a thread.
*/
clean(threadId: string, options?: Core.RequestOptions): Core.APIPromise<Thread> {
return this._client.post(`/threads/${threadId}/clean`);
}

/**
* Delete a thread.
*/
Expand Down

0 comments on commit 3b90d14

Please sign in to comment.