Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>OpenAI#createThreadAndRun

OpenAI API wrapper for deno.
Latest
method OpenAI.prototype.createThreadAndRun
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

A run object.

Parameters

assistantID: string

The ID of the assistant to use to execute this run.

optional
params: CreateThreadAndRunParams

Optional parameters for the API.

Returns

Promise<Run>

Create a thread and run it in one request.