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

x/openai/resources/beta/assistants.ts>FileSearchTool.FileSearch

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface FileSearchTool.FileSearch
import { type FileSearchTool } from "https://deno.land/x/openai@v4.52.7/resources/beta/assistants.ts";
const { FileSearch } = FileSearchTool;

Overrides for the file search tool.

Properties

optional
max_num_results: number

The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive.

Note that the file search tool may output fewer than max_num_results results. See the file search tool documentation for more information.