import { Threads } from "https://deno.land/x/openai@v4.19.1/resources/beta/mod.ts";
import { Threads } from "https://deno.land/x/openai@v4.19.1/resources/beta/mod.ts";
Methods
create(body?: ThreadCreateParams, options?: Core.RequestOptions): Core.APIPromise<Thread>
Create a thread.
createAndRun(body: ThreadCreateAndRunParams, options?: Core.RequestOptions): Core.APIPromise<RunsAPI.Run>
Create a thread and run it in one request.
del(threadId: string, options?: Core.RequestOptions): Core.APIPromise<ThreadDeleted>
Delete a thread.
Retrieves a thread.