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#createAndRun

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

Create a thread and run it in one request.

Parameters

optional
options: Core.RequestOptions

Returns

APIPromise<RunsAPI.Run>

Parameters

optional
options: Core.RequestOptions

Returns

APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>

Parameters

body: ThreadCreateAndRunParamsBase
optional
options: Core.RequestOptions

Returns

APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | RunsAPI.Run>