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

x/openai_deno/mod.ts>OpenAI#createRun

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

Create a run.

Parameters

threadID: string

The ID of the thread to run.

assistantID: string

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

optional
params: CreateRunParams

Optional parameters for the API.

Returns

Promise<Run>

A run object.