Skip to main content
Module

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

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.create
import { Threads } from "https://deno.land/x/openai@v4.19.0/resources/beta/threads/mod.ts";

Create a thread.

Parameters

optional
body: ThreadCreateParams
optional
options: Core.RequestOptions

Returns

Core.APIPromise<Thread>

Parameters

optional
options: Core.RequestOptions

Returns

Core.APIPromise<Thread>