Skip to main content
Module

x/openai/resources/beta/threads/mod.ts>Threads#createAndRun

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
method Threads.prototype.createAndRun
import { Threads } from "https://deno.land/x/openai@v4.19.0/resources/beta/threads/mod.ts";

Create a thread and run it in one request.

Parameters

optional
options: Core.RequestOptions

Returns

Core.APIPromise<RunsAPI.Run>