Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/mod.ts>ThreadCreateAndRunParams

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

Interfaces

If no thread is provided, an empty thread will be created.

A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.

The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.

A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.

Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.

type alias ThreadCreateAndRunParams
import { type ThreadCreateAndRunParams } from "https://deno.land/x/openai@v4.51.0/resources/beta/mod.ts";