Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/mod.ts>Threads#createAndRunPoll

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Threads.prototype.createAndRunPoll
import { Threads } from "https://deno.land/x/openai@v4.38.5/resources/beta/mod.ts";

A helper to create a thread, start a run and then poll for a terminal state. More information on Run lifecycles can be found here: https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps

Parameters

optional
options: Core.RequestOptions & { pollIntervalMs?: number; }